#[repr(u64)]pub enum KernelConsoleReadError {
Unknown,
WouldBlock,
NoSuchDevice,
IOError,
}
Expand description
Possible errors returned by reading from the kernel console’s input.
Variants§
Unknown
Unknown error.
WouldBlock
Operation would block, but non-blocking was requested.
NoSuchDevice
Failed to read because there was no input mechanism made available to the kernel.
IOError
The input mechanism had an internal error.
Trait Implementations§
source§impl Clone for KernelConsoleReadError
impl Clone for KernelConsoleReadError
source§fn clone(&self) -> KernelConsoleReadError
fn clone(&self) -> KernelConsoleReadError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KernelConsoleReadError
impl Debug for KernelConsoleReadError
source§impl Display for KernelConsoleReadError
impl Display for KernelConsoleReadError
source§impl Error for KernelConsoleReadError
impl Error for KernelConsoleReadError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<KernelConsoleReadError> for u64
impl From<KernelConsoleReadError> for u64
source§fn from(enum_value: KernelConsoleReadError) -> Self
fn from(enum_value: KernelConsoleReadError) -> Self
Converts to this type from the input type.
source§impl From<u64> for KernelConsoleReadError
impl From<u64> for KernelConsoleReadError
source§impl FromPrimitive for KernelConsoleReadError
impl FromPrimitive for KernelConsoleReadError
source§impl Hash for KernelConsoleReadError
impl Hash for KernelConsoleReadError
source§impl Ord for KernelConsoleReadError
impl Ord for KernelConsoleReadError
source§fn cmp(&self, other: &KernelConsoleReadError) -> Ordering
fn cmp(&self, other: &KernelConsoleReadError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<KernelConsoleReadError> for KernelConsoleReadError
impl PartialEq<KernelConsoleReadError> for KernelConsoleReadError
source§fn eq(&self, other: &KernelConsoleReadError) -> bool
fn eq(&self, other: &KernelConsoleReadError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<KernelConsoleReadError> for KernelConsoleReadError
impl PartialOrd<KernelConsoleReadError> for KernelConsoleReadError
source§fn partial_cmp(&self, other: &KernelConsoleReadError) -> Option<Ordering>
fn partial_cmp(&self, other: &KernelConsoleReadError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for KernelConsoleReadError
impl StructuralEq for KernelConsoleReadError
impl StructuralPartialEq for KernelConsoleReadError
Auto Trait Implementations§
impl ObjSafe for KernelConsoleReadError
impl RefUnwindSafe for KernelConsoleReadError
impl Send for KernelConsoleReadError
impl Sync for KernelConsoleReadError
impl Unpin for KernelConsoleReadError
impl UnwindSafe for KernelConsoleReadError
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