Lines Matching refs:Error

25             pub const $err: super::Error =
26 match super::Error::try_from_errno(-(crate::bindings::$err as i32)) {
99 pub struct Error(NonZeroI32); struct
101 impl Error { implementation
106 pub fn from_errno(errno: crate::ffi::c_int) -> Error { in from_errno() argument
122 const fn try_from_errno(errno: crate::ffi::c_int) -> Option<Error> { in try_from_errno() argument
128 Some(unsafe { Error::from_errno_unchecked(errno) }) in try_from_errno()
136 const unsafe fn from_errno_unchecked(errno: crate::ffi::c_int) -> Error { in from_errno_unchecked() argument
140 Error(unsafe { NonZeroI32::new_unchecked(errno) }) in from_errno_unchecked()
184 impl fmt::Debug for Error { implementation
199 impl From<AllocError> for Error { implementation
200 fn from(_: AllocError) -> Error { in from() argument
205 impl From<TryFromIntError> for Error { implementation
206 fn from(_: TryFromIntError) -> Error { in from() argument
211 impl From<Utf8Error> for Error { implementation
212 fn from(_: Utf8Error) -> Error { in from() argument
217 impl From<LayoutError> for Error { implementation
218 fn from(_: LayoutError) -> Error { in from() argument
223 impl From<fmt::Error> for Error { implementation
224 fn from(_: fmt::Error) -> Error { in from() argument
229 impl From<core::convert::Infallible> for Error { implementation
230 fn from(e: core::convert::Infallible) -> Error { in from() argument
376 pub type Result<T = (), E = Error> = core::result::Result<T, E>;
382 Err(Error::from_errno(err)) in to_result()
427 return Err(unsafe { Error::from_errno_unchecked(err as crate::ffi::c_int) }); in from_err_ptr()