#[repr(u64)]pub enum KernelConsoleReadBufferError {
Unknown,
WouldBlock,
}
Expand description
Possible errors returned by reading from the kernel console’s input.
Variants§
Trait Implementations§
source§impl Clone for KernelConsoleReadBufferError
impl Clone for KernelConsoleReadBufferError
source§fn clone(&self) -> KernelConsoleReadBufferError
fn clone(&self) -> KernelConsoleReadBufferError
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 KernelConsoleReadBufferError
impl Debug for KernelConsoleReadBufferError
source§impl Error for KernelConsoleReadBufferError
impl Error for KernelConsoleReadBufferError
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<KernelConsoleReadBufferError> for u64
impl From<KernelConsoleReadBufferError> for u64
source§fn from(enum_value: KernelConsoleReadBufferError) -> Self
fn from(enum_value: KernelConsoleReadBufferError) -> Self
Converts to this type from the input type.
source§impl From<u64> for KernelConsoleReadBufferError
impl From<u64> for KernelConsoleReadBufferError
source§impl FromPrimitive for KernelConsoleReadBufferError
impl FromPrimitive for KernelConsoleReadBufferError
source§impl Hash for KernelConsoleReadBufferError
impl Hash for KernelConsoleReadBufferError
source§impl Ord for KernelConsoleReadBufferError
impl Ord for KernelConsoleReadBufferError
source§fn cmp(&self, other: &KernelConsoleReadBufferError) -> Ordering
fn cmp(&self, other: &KernelConsoleReadBufferError) -> 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<KernelConsoleReadBufferError> for KernelConsoleReadBufferError
impl PartialEq<KernelConsoleReadBufferError> for KernelConsoleReadBufferError
source§fn eq(&self, other: &KernelConsoleReadBufferError) -> bool
fn eq(&self, other: &KernelConsoleReadBufferError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<KernelConsoleReadBufferError> for KernelConsoleReadBufferError
impl PartialOrd<KernelConsoleReadBufferError> for KernelConsoleReadBufferError
source§fn partial_cmp(&self, other: &KernelConsoleReadBufferError) -> Option<Ordering>
fn partial_cmp(&self, other: &KernelConsoleReadBufferError) -> 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 KernelConsoleReadBufferError
impl StructuralEq for KernelConsoleReadBufferError
impl StructuralPartialEq for KernelConsoleReadBufferError
Auto Trait Implementations§
impl ObjSafe for KernelConsoleReadBufferError
impl RefUnwindSafe for KernelConsoleReadBufferError
impl Send for KernelConsoleReadBufferError
impl Sync for KernelConsoleReadBufferError
impl Unpin for KernelConsoleReadBufferError
impl UnwindSafe for KernelConsoleReadBufferError
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