Status

Enum Status 

Source
#[repr(u8)]
pub enum Status {
Show 26 variants Success = 0, Failure = 1, NotAuthorized = 126, Reserved7f = 127, MalformedCommand = 128, UnsupCommand = 129, InvalidField = 133, UnsupportedAttribute = 134, InvalidValue = 135, ReadOnly = 136, InsufficientSpace = 137, NotFound = 139, UnreportableAttribute = 140, InvalidDataType = 141, InvalidSelector = 142, Reserved92 = 146, Timeout = 148, Abort = 149, InvalidImage = 150, WaitForData = 151, NoImageAvailable = 152, RequireMoreImage = 153, NotificationPending = 154, ReservedC2 = 194, UnsupportedCluster = 195, Invalid(u8),
}

Variants§

§

Success = 0

Operation was successful

§

Failure = 1

Operation was not successful

§

NotAuthorized = 126

The sender of the command does not have authorization to carry out this command

§

Reserved7f = 127

Unknown purpose

§

MalformedCommand = 128

The command appears to contain the wrong fields, as detected either by the presence of one or more invalid field entries or by there being missing fields. Command not carried out. Implementer has discretion as to whether to return this error or INVALID_FIELD

§

UnsupCommand = 129

The specified command is not supported on the device. Command not carried out

§

InvalidField = 133

At least one field of the command contains an incorrect value, according to the specification the device is implemented to

§

UnsupportedAttribute = 134

The specified attribute does not exist on the device

§

InvalidValue = 135

Out of range error or set to a reserved value. Attribute keeps its old value. Note that an attribute value may be out of range if an attribute is related to another, e.g., with minimum and maximum attributes. See the individual attribute descriptions for specific details

§

ReadOnly = 136

Attempt to write a read-only attribute

§

InsufficientSpace = 137

An operation failed due to an insufficient amount of free space available

§

NotFound = 139

The requested information (e.g., table entry) could not be found

§

UnreportableAttribute = 140

Periodic reports cannot be issued for this attribute

§

InvalidDataType = 141

The data type given for an attribute is incorrect. Command not carried out

§

InvalidSelector = 142

The selector for an attribute is incorrect

§

Reserved92 = 146

The supplied values (e.g., contents of table cells) are inconsistent

§

Timeout = 148

The exchange was aborted due to excessive response time

§

Abort = 149

Failed case when a client or a server decides to abort the upgrade process

§

InvalidImage = 150

Invalid OTA upgrade image (ex. failed signature validation or signer information check or CRC check)

§

WaitForData = 151

Server does not have data block available yet

§

NoImageAvailable = 152

No OTA upgrade image available for the client

§

RequireMoreImage = 153

The client still requires more OTA upgrade image files to successfully upgrade

§

NotificationPending = 154

The command has been received and is being processed

§

ReservedC2 = 194

An error occurred during calibration

§

UnsupportedCluster = 195

The cluster is not supported

§

Invalid(u8)

Something else

Trait Implementations§

Source§

impl Clone for Status

Source§

fn clone(&self) -> Status

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Status

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Status

Source§

fn eq(&self, other: &Status) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Status

Source§

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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.