Struct linuxfb::ErrnoError
source · pub struct ErrnoError {
pub errno: i32,
pub message: String,
}
Expand description
Represents an error read from the libc global errno
These errors are returned, when ioctl
or other wrapped
libc calls fail.
Fields§
§errno: i32
Error number. Compare this with the libc::E*
constants,
to handle specific errors.
e.g.:
error.errno == libc::EBUSY; // true
println!("{}", error.message); // prints "Resource busy" (on my system)
message: String
Message produced by strerror(errno)
. This value varies
based on the user’s locale, so do not use it for comparisons.
Trait Implementations§
source§impl Debug for ErrnoError
impl Debug for ErrnoError
source§impl From<ErrnoError> for Error
impl From<ErrnoError> for Error
source§fn from(fb: ErrnoError) -> Error
fn from(fb: ErrnoError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ErrnoError
impl Send for ErrnoError
impl Sync for ErrnoError
impl Unpin for ErrnoError
impl UnwindSafe for ErrnoError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more