#[repr(i32)]pub enum MCUmgrErr {
Show 15 variants
MGMT_ERR_EOK = 0,
MGMT_ERR_EUNKNOWN = 1,
MGMT_ERR_ENOMEM = 2,
MGMT_ERR_EINVAL = 3,
MGMT_ERR_ETIMEOUT = 4,
MGMT_ERR_ENOENT = 5,
MGMT_ERR_EBADSTATE = 6,
MGMT_ERR_EMSGSIZE = 7,
MGMT_ERR_ENOTSUP = 8,
MGMT_ERR_ECORRUPT = 9,
MGMT_ERR_EBUSY = 10,
MGMT_ERR_EACCESSDENIED = 11,
MGMT_ERR_UNSUPPORTED_TOO_OLD = 12,
MGMT_ERR_UNSUPPORTED_TOO_NEW = 13,
MGMT_ERR_EPERUSER = 256,
}Expand description
See enum mcumgr_err_t.
Variants§
MGMT_ERR_EOK = 0
No error (success).
MGMT_ERR_EUNKNOWN = 1
Unknown error.
MGMT_ERR_ENOMEM = 2
Insufficient memory (likely not enough space for CBOR object).
MGMT_ERR_EINVAL = 3
Error in input value.
MGMT_ERR_ETIMEOUT = 4
Operation timed out.
MGMT_ERR_ENOENT = 5
No such file/entry.
MGMT_ERR_EBADSTATE = 6
Current state disallows command.
MGMT_ERR_EMSGSIZE = 7
Response too large.
MGMT_ERR_ENOTSUP = 8
Command not supported.
MGMT_ERR_ECORRUPT = 9
Corrupt
MGMT_ERR_EBUSY = 10
Command blocked by processing of other command
MGMT_ERR_EACCESSDENIED = 11
Access to specific function, command or resource denied
MGMT_ERR_UNSUPPORTED_TOO_OLD = 12
Requested SMP MCUmgr protocol version is not supported (too old)
MGMT_ERR_UNSUPPORTED_TOO_NEW = 13
Requested SMP MCUmgr protocol version is not supported (too new)
MGMT_ERR_EPERUSER = 256
User errors defined from 256 onwards
Implementations§
Trait Implementations§
impl Copy for MCUmgrErr
impl Eq for MCUmgrErr
impl StructuralPartialEq for MCUmgrErr
Auto Trait Implementations§
impl Freeze for MCUmgrErr
impl RefUnwindSafe for MCUmgrErr
impl Send for MCUmgrErr
impl Sync for MCUmgrErr
impl Unpin for MCUmgrErr
impl UnwindSafe for MCUmgrErr
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