#[repr(u64)]pub enum KernelConsoleReadBufferError {
Unknown = 0,
WouldBlock = 1,
}
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)>
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<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 for KernelConsoleReadBufferError
impl PartialEq for KernelConsoleReadBufferError
source§fn eq(&self, other: &KernelConsoleReadBufferError) -> bool
fn eq(&self, other: &KernelConsoleReadBufferError) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.source§impl PartialOrd for KernelConsoleReadBufferError
impl PartialOrd for KernelConsoleReadBufferError
impl Eq for KernelConsoleReadBufferError
impl StructuralPartialEq for KernelConsoleReadBufferError
Auto Trait Implementations§
impl Freeze for KernelConsoleReadBufferError
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
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.