Lines Matching refs:Error
23 pub const $err: super::Error = super::Error(-(crate::bindings::$err as i32));
91 pub struct Error(core::ffi::c_int); struct
93 impl Error { impls
98 pub(crate) fn from_errno(errno: core::ffi::c_int) -> Error { in from_errno() argument
110 Error(errno) in from_errno()
118 unsafe fn from_errno_unchecked(errno: core::ffi::c_int) -> Error { in from_errno_unchecked() argument
121 Error(errno) in from_errno_unchecked()
169 impl fmt::Debug for Error { implementation
182 impl From<AllocError> for Error { implementation
183 fn from(_: AllocError) -> Error { in from() argument
188 impl From<TryFromIntError> for Error { implementation
189 fn from(_: TryFromIntError) -> Error { in from() argument
194 impl From<Utf8Error> for Error { implementation
195 fn from(_: Utf8Error) -> Error { in from() argument
200 impl From<LayoutError> for Error { implementation
201 fn from(_: LayoutError) -> Error { in from() argument
206 impl From<core::fmt::Error> for Error { implementation
207 fn from(_: core::fmt::Error) -> Error { in from() argument
212 impl From<core::convert::Infallible> for Error { implementation
213 fn from(e: core::convert::Infallible) -> Error { in from() argument
238 pub type Result<T = (), E = Error> = core::result::Result<T, E>;
244 Err(Error::from_errno(err)) in to_result()
290 return Err(unsafe { Error::from_errno_unchecked(err as core::ffi::c_int) }); in from_err_ptr()