pub enum KernelDiagnosticCode {
Base(KernelErrorCode),
InvalidState(InvalidStateCode),
InvalidConfig(InvalidConfigCode),
}Variants§
Implementations§
Source§impl KernelDiagnosticCode
impl KernelDiagnosticCode
pub const fn family(self) -> KernelErrorCode
pub const fn family_code(self) -> u32
pub const fn detailed_code(self) -> u32
pub const fn index(self) -> u32
pub const fn indexed_code(self) -> u32
Trait Implementations§
Source§impl Clone for KernelDiagnosticCode
impl Clone for KernelDiagnosticCode
Source§fn clone(&self) -> KernelDiagnosticCode
fn clone(&self) -> KernelDiagnosticCode
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 KernelDiagnosticCode
impl Debug for KernelDiagnosticCode
Source§impl From<&KernelError> for KernelDiagnosticCode
impl From<&KernelError> for KernelDiagnosticCode
Source§fn from(error: &KernelError) -> Self
fn from(error: &KernelError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidConfigCode> for KernelDiagnosticCode
impl From<InvalidConfigCode> for KernelDiagnosticCode
Source§fn from(code: InvalidConfigCode) -> Self
fn from(code: InvalidConfigCode) -> Self
Converts to this type from the input type.
Source§impl From<InvalidStateCode> for KernelDiagnosticCode
impl From<InvalidStateCode> for KernelDiagnosticCode
Source§fn from(code: InvalidStateCode) -> Self
fn from(code: InvalidStateCode) -> Self
Converts to this type from the input type.
Source§impl From<KernelErrorCode> for KernelDiagnosticCode
impl From<KernelErrorCode> for KernelDiagnosticCode
Source§fn from(code: KernelErrorCode) -> Self
fn from(code: KernelErrorCode) -> Self
Converts to this type from the input type.
Source§impl HasKernelDiagnosticCode for KernelDiagnosticCode
impl HasKernelDiagnosticCode for KernelDiagnosticCode
fn diagnostic_code(&self) -> KernelDiagnosticCode
Source§impl PartialEq for KernelDiagnosticCode
impl PartialEq for KernelDiagnosticCode
impl Copy for KernelDiagnosticCode
impl Eq for KernelDiagnosticCode
impl StructuralPartialEq for KernelDiagnosticCode
Auto Trait Implementations§
impl Freeze for KernelDiagnosticCode
impl RefUnwindSafe for KernelDiagnosticCode
impl Send for KernelDiagnosticCode
impl Sync for KernelDiagnosticCode
impl Unpin for KernelDiagnosticCode
impl UnwindSafe for KernelDiagnosticCode
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