pub struct FrozenErr { /* private fields */ }Expand description
Custom error object used in FrozenRes
Implementations§
Source§impl FrozenErr
impl FrozenErr
Sourcepub fn new(
module: u8,
domain: u8,
reason: u16,
detail: &'static [u8],
errmsg: Vec<u8>,
) -> Self
pub fn new( module: u8, domain: u8, reason: u16, detail: &'static [u8], errmsg: Vec<u8>, ) -> Self
Constrcut a new instance from raw id’s
§Example
use frozen_core::error::FrozenErr;
let err = FrozenErr::new(1, 2, 0x0033, b"io", b"failed".to_vec());
assert_eq!(err.cmp(0x0033), true);Trait Implementations§
impl Eq for FrozenErr
impl StructuralPartialEq for FrozenErr
Auto Trait Implementations§
impl Freeze for FrozenErr
impl RefUnwindSafe for FrozenErr
impl Send for FrozenErr
impl Sync for FrozenErr
impl Unpin for FrozenErr
impl UnsafeUnpin for FrozenErr
impl UnwindSafe for FrozenErr
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