Skip to main content

Status

Enum Status 

Source
pub enum Status {
Show 60 variants Success, ErrFatal, BadArgument, Eeprom(Eeprom), NoBuffers, Serial(Serial), Mac(Mac), SimEeprom(SimEeprom), Err(Err), DeliveryFailed, BindingIndexOutOfRange, AddressTableIndexOutOfRange, InvalidBindingIndex, InvalidCall, CostNotKnown, MaxMessageLimitReached, MessageTooLong, BindingIsActive, AddressTableEntryIsActive, Adc(Adc), SleepInterrupted, Phy(Phy), NetworkUp, NetworkDown, NotJoined, JoinFailed, InvalidSecurityLevel, MoveFailed, CannotJoinAsRouter, NodeIdChanged, PanIdChanged, NetworkOpened, NetworkClosed, NoBeacons, ReceivedKeyInTheClear, NoNetworkKeyReceived, NoLinkKeyReceived, PreconfiguredKeyRequired, KeyInvalid, NetworkBusy, InvalidEndpoint, BindingHasChanged, InsufficientRandomData, ApsEncryptionError, SecurityStateNotSet, SourceRouteFailure, ManyToOneRouteFailure, StackAndHardwareMismatch, IndexOutOfRange, KeyTableInvalidAddress, TableFull, LibraryNotPresent, TableEntryErased, SecurityConfigurationInvalid, TooSoonForSwitchKey, SignatureVerifyFailure, OperationInProgress, KeyNotAuthorized, SecurityDataInvalid, Application(Application),
}
Expand description

Variants§

§

Success

The generic ‘no error’ message.

§

ErrFatal

The generic ‘fatal error’ message.

§

BadArgument

An invalid value was passed as an argument to a function.

§

Eeprom(Eeprom)

EEPROM status.

§

NoBuffers

There are no more buffers.

§

Serial(Serial)

Serial status.

§

Mac(Mac)

MAC status.

§

SimEeprom(SimEeprom)

Simulated EEPROM status.

§

Err(Err)

Erroneous messages.

§

DeliveryFailed

The APS layer attempted to send or deliver a message, but it failed.

§

BindingIndexOutOfRange

This binding index is out of range of the current binding table.

§

AddressTableIndexOutOfRange

This address table index is out of range for the current address table.

§

InvalidBindingIndex

An invalid binding table index was given to a function.

§

InvalidCall

The API call is not allowed given the current state of the stack.

§

CostNotKnown

The link cost to a node is not known.

§

MaxMessageLimitReached

The maximum number of in-flight messages (i.e. EMBER_APS_UNICAST_MESSAGE_COUNT) has been reached.

§

MessageTooLong

The message to be transmitted is too big to fit into a single over-the-air packet.

§

BindingIsActive

The application is trying to delete or overwrite a binding that is in use.

§

AddressTableEntryIsActive

The application is trying to overwrite an address table entry that is in use.

§

Adc(Adc)

ADC status.

§

SleepInterrupted

Sleeping (for a duration) has been abnormally interrupted and exited prematurely.

§

Phy(Phy)

PHY status.

§

NetworkUp

The stack software has completed initialization and is ready to send and receive packets over the air.

§

NetworkDown

The network is not operating.

§

NotJoined

The node has not joined a network.

§

JoinFailed

An attempt to join a network failed.

§

InvalidSecurityLevel

The chosen security level (the value of EMBER_SECURITY_LEVEL) is not supported by the stack.

§

MoveFailed

After moving, a mobile node’s attempt to re-establish contact with the network failed.

§

CannotJoinAsRouter

An attempt to join as a router failed due to a Zigbee versus Zigbee Pro incompatibility.

Zigbee devices joining Zigbee Pro networks (or vice versa) must join as End Devices, not Routers.

§

NodeIdChanged

The local node ID has changed.

The application can obtain the new node ID by calling emberGetNodeId().

§

PanIdChanged

The local PAN ID has changed.

The application can obtain the new PAN ID by calling emberGetPanId().

§

NetworkOpened

The network has been opened for joining.

§

NetworkClosed

The network has been closed for joining.

§

NoBeacons

An attempt to join or rejoin the network failed because no router beacons could be heard by the joining node.

§

ReceivedKeyInTheClear

An attempt was made to join a Secured Network using a pre-configured key, but the Trust Center sent back a Network Key in-the-clear when an encrypted Network Key was required.

§

NoNetworkKeyReceived

An attempt was made to join a Secured Network, but the device did not receive a Network Key.

§

NoLinkKeyReceived

After a device joined a Secured Network, a Link Key was requested but no response was ever received.

§

PreconfiguredKeyRequired

An attempt was made to join a Secured Network without a pre-configured key, but the Trust Center sent encrypted data using a pre-configured key.

§

KeyInvalid

The passed key data is not valid.

A key of all zeros or all F’s are reserved values and cannot be used.

§

NetworkBusy

A message cannot be sent because the network is currently overloaded.

§

InvalidEndpoint

The application tried to send a message using an endpoint that it has not defined.

§

BindingHasChanged

The application tried to use a binding that has been remotely modified and the change has not yet been reported to the application.

§

InsufficientRandomData

An attempt to generate random bytes failed because of insufficient random data from the radio.

§

ApsEncryptionError

There was an error in trying to encrypt at the APS Level.

This could result from either an inability to determine the long address of the recipient from the short address (no entry in the binding table) or there is no link key entry in the table associated with the destination, or there was a failure to load the correct key into the encryption core.

§

SecurityStateNotSet

There was an attempt to form or join a network with security without calling emberSetInitialSecurityState() first.

§

SourceRouteFailure

A Zigbee route error command frame was received indicating that a source routed message from this node failed en route

§

ManyToOneRouteFailure

A Zigbee route error command frame was received indicating that a message sent to this node along a many-to-one route failed en route.

The route error frame was delivered by an ad-hoc search for a functioning route.

§

StackAndHardwareMismatch

A critical and fatal error indicating that the version of the stack trying to run does not match with the chip it is running on.

The software (stack) on the chip must be replaced with software that is compatible with the chip.

§

IndexOutOfRange

An index was passed into the function that was larger than the valid range.

§

KeyTableInvalidAddress

There was an attempt to set an entry in the key table using an invalid long address.

An entry cannot be set using either the local device’s or Trust Center’s IEEE address. Or an entry already exists in the table with the same IEEE address. An Address of all zeros or all F’s are not valid addresses in 802.15.4.

§

TableFull

There are no empty entries left in the table.

§

LibraryNotPresent

The requested function cannot be executed because the library that contains the necessary functionality is not present.

§

TableEntryErased

The requested table entry has been erased and contains no valid data.

§

SecurityConfigurationInvalid

There was an attempt to set a security configuration that is not valid given the other security settings.

§

TooSoonForSwitchKey

There was an attempt to broadcast a key switch too quickly after broadcasting the next network key.

The Trust Center must wait at least a period equal to the broadcast timeout so that all routers have a chance to receive the broadcast of the new network key.

§

SignatureVerifyFailure

The received signature corresponding to the message that was passed to the CBKE Library failed verification, it is not valid.

§

OperationInProgress

The stack accepted the command and is currently processing the request.

The results will be returned via an appropriate handler.

§

KeyNotAuthorized

The message could not be sent because the link key corresponding to the destination is not authorized for use in APS data messages.

APS Commands (sent by the stack) are allowed. To use it for encryption of APS data messages it must be authorized using a key agreement protocol (such as CBKE).

§

SecurityDataInvalid

The security data provided was not valid, or an integrity check failed.

§

Application(Application)

Application status.

Trait Implementations§

Source§

impl Clone for Status

Source§

fn clone(&self) -> Status

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for Status

Source§

impl Debug for Status

Source§

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

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

impl Display for Status

Source§

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

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

impl Eq for Status

Source§

impl Error for Status

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Status> for u8

Source§

fn from(status: Status) -> Self

Converts to this type from the input type.
Source§

impl From<Status> for Error

Source§

fn from(status: Status) -> Self

Converts to this type from the input type.
Source§

impl FromPrimitive for Status

Source§

fn from_i64(n: i64) -> Option<Self>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

impl Hash for Status

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl LowerHex 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 (const: unstable) · 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 StructuralPartialEq for Status

Source§

impl TryFrom<Status> for Event

Source§

type Error = Status

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

fn try_from(status: Status) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl UpperHex for Status

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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> TryFromLeStream<T> for U
where T: FromLeStream, U: TryFrom<T>,

Source§

fn try_from_le_stream<I>( bytes: I, ) -> Result<U, Option<<U as TryFrom<T>>::Error>>
where I: Iterator<Item = u8>,

Try to parse an object from another type that can be parsed from a stream of bytes with little endianness. Read more
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.