Lines Matching refs:Error
27 pub const $err: super::Error = super::Error(-(crate::bindings::$err as i32));
95 pub struct Error(core::ffi::c_int); struct
97 impl Error { impl
102 pub(crate) fn from_errno(errno: core::ffi::c_int) -> Error { in from_errno() argument
114 Error(errno) in from_errno()
122 unsafe fn from_errno_unchecked(errno: core::ffi::c_int) -> Error { in from_errno_unchecked() argument
125 Error(errno) in from_errno_unchecked()
164 impl fmt::Debug for Error { implementation
177 impl From<AllocError> for Error { implementation
178 fn from(_: AllocError) -> Error { in from() argument
183 impl From<TryFromIntError> for Error { implementation
184 fn from(_: TryFromIntError) -> Error { in from() argument
189 impl From<Utf8Error> for Error { implementation
190 fn from(_: Utf8Error) -> Error { in from() argument
195 impl From<TryReserveError> for Error { implementation
196 fn from(_: TryReserveError) -> Error { in from() argument
201 impl From<LayoutError> for Error { implementation
202 fn from(_: LayoutError) -> Error { in from() argument
207 impl From<core::fmt::Error> for Error { implementation
208 fn from(_: core::fmt::Error) -> Error { in from() argument
213 impl From<core::convert::Infallible> for Error { implementation
214 fn from(e: core::convert::Infallible) -> Error { in from() argument
239 pub type Result<T = (), E = Error> = core::result::Result<T, E>;
245 Err(Error::from_errno(err)) in to_result()
295 return Err(unsafe { Error::from_errno_unchecked(err as core::ffi::c_int) }); in from_err_ptr()