pub struct Status(pub u32);Expand description
A status code, encoded on the wire as a packed unsigned integer.
Represented as a newtype rather than an enum so receivers can carry codes defined by future protocol versions without loss.
Tuple Fields§
§0: u32Implementations§
Source§impl Status
impl Status
pub const OK: Self
pub const FAILURE: Self
pub const UNIMPLEMENTED: Self
pub const INVALID_ARGUMENT: Self
pub const INVALID_STATE: Self
pub const INVALID_COMMAND: Self
pub const INTERNAL_ERROR: Self
pub const PARSE_ERROR: Self
pub const IN_PROGRESS: Self
pub const NOMEM: Self
pub const BUSY: Self
pub const PROP_NOT_FOUND: Self
pub const CCA_FAILURE: Self
pub const ALREADY: Self
pub const ITEM_NOT_FOUND: Self
pub const DUTY_LIMIT: Self
pub const RESET_POWER_ON: Self
pub const RESET_EXTERNAL: Self
pub const RESET_SOFTWARE: Self
pub const RESET_RESTORED: Self
pub const RESET_CRASH: Self
pub const RESET_ASSERT: Self
pub const RESET_OTHER: Self
pub const RESET_UNKNOWN: Self
pub const RESET_WATCHDOG: Self
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)