Lines Matching refs:Error

25             pub const $err: super::Error =
26 match super::Error::try_from_errno(-(crate::bindings::$err as i32)) {
98 pub struct Error(NonZeroI32); struct
100 impl Error { implementation
105 pub fn from_errno(errno: crate::ffi::c_int) -> Error { in from_errno() argument
121 const fn try_from_errno(errno: crate::ffi::c_int) -> Option<Error> { in try_from_errno() argument
127 Some(unsafe { Error::from_errno_unchecked(errno) }) in try_from_errno()
135 const unsafe fn from_errno_unchecked(errno: crate::ffi::c_int) -> Error { in from_errno_unchecked() argument
139 Error(unsafe { NonZeroI32::new_unchecked(errno) }) in from_errno_unchecked()
183 impl fmt::Debug for Error { implementation
198 impl From<AllocError> for Error { implementation
199 fn from(_: AllocError) -> Error { in from() argument
204 impl From<TryFromIntError> for Error { implementation
205 fn from(_: TryFromIntError) -> Error { in from() argument
210 impl From<Utf8Error> for Error { implementation
211 fn from(_: Utf8Error) -> Error { in from() argument
216 impl From<LayoutError> for Error { implementation
217 fn from(_: LayoutError) -> Error { in from() argument
222 impl From<core::fmt::Error> for Error { implementation
223 fn from(_: core::fmt::Error) -> Error { in from() argument
228 impl From<core::convert::Infallible> for Error { implementation
229 fn from(e: core::convert::Infallible) -> Error { in from() argument
375 pub type Result<T = (), E = Error> = core::result::Result<T, E>;
381 Err(Error::from_errno(err)) in to_result()
426 return Err(unsafe { Error::from_errno_unchecked(err as crate::ffi::c_int) }); in from_err_ptr()