#[repr(u64)]pub enum KernelConsoleReadError {
Unknown = 0,
WouldBlock = 1,
NoSuchDevice = 2,
IOError = 3,
}
Expand description
Possible errors returned by reading from the kernel console’s input.
Variants§
Unknown = 0
Unknown error.
WouldBlock = 1
Operation would block, but non-blocking was requested.
NoSuchDevice = 2
Failed to read because there was no input mechanism made available to the kernel.
IOError = 3
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)>
Returns 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 for KernelConsoleReadError
impl PartialEq for KernelConsoleReadError
source§impl PartialOrd for KernelConsoleReadError
impl PartialOrd for KernelConsoleReadError
impl Eq for KernelConsoleReadError
impl StructuralPartialEq for KernelConsoleReadError
Auto Trait Implementations§
impl Freeze for KernelConsoleReadError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.