Skip to main content

Body

Enum Body 

Source
pub enum Body {
Show 32 variants NwkAddrReq { ieee: Ieee, request_type: u8, start_index: u8, }, IeeeAddrReq { nwk: NodeId, request_type: u8, start_index: u8, }, NodeDescReq { nwk: NodeId, }, PowerDescReq { nwk: NodeId, }, SimpleDescReq { nwk: NodeId, endpoint: u8, }, ActiveEpReq { nwk: NodeId, }, MatchDescReq { nwk: NodeId, profile_id: u16, input_clusters: Vec<u16>, output_clusters: Vec<u16>, }, DeviceAnnce { nwk: NodeId, ieee: Ieee, capability: u8, }, BindReq(Binding), UnbindReq(Binding), MgmtLqiReq { start_index: u8, }, MgmtRtgReq { start_index: u8, }, MgmtBindReq { start_index: u8, }, MgmtLeaveReq { ieee: Ieee, flags: u8, }, MgmtPermitJoiningReq { duration: u8, tc_significance: u8, }, MgmtNwkUpdateReq { channel_mask: u32, scan_duration: u8, scan_count: Option<u8>, nwk_update_id: Option<u8>, manager: Option<NodeId>, }, NwkAddrRsp { status: u8, ieee: Ieee, nwk: NodeId, associated: Option<AssociatedDevices>, }, IeeeAddrRsp { status: u8, ieee: Ieee, nwk: NodeId, associated: Option<AssociatedDevices>, }, NodeDescRsp { status: u8, nwk: NodeId, descriptor: Option<NodeDescriptor>, }, PowerDescRsp { status: u8, nwk: NodeId, descriptor: Option<u16>, }, SimpleDescRsp { status: u8, nwk: NodeId, descriptor: Option<SimpleDescriptor>, }, ActiveEpRsp { status: u8, nwk: NodeId, endpoints: Vec<u8>, }, MatchDescRsp { status: u8, nwk: NodeId, endpoints: Vec<u8>, }, BindRsp { status: u8, }, UnbindRsp { status: u8, }, MgmtLqiRsp { status: u8, total: u8, start_index: u8, neighbors: Vec<Neighbor>, }, MgmtRtgRsp { status: u8, total: u8, start_index: u8, routes: Vec<Route>, }, MgmtBindRsp { status: u8, total: u8, start_index: u8, bindings: Vec<Binding>, }, MgmtLeaveRsp { status: u8, }, MgmtPermitJoiningRsp { status: u8, }, MgmtNwkUpdateNotify { status: u8, scanned_channels: u32, total_transmissions: u16, transmission_failures: u16, energy: Vec<u8>, }, Other { cluster: u16, payload: Vec<u8>, },
}
Expand description

A ZDO frame body.

Variants§

§

NwkAddrReq

Fields

§ieee: Ieee
§request_type: u8
§start_index: u8
§

IeeeAddrReq

Fields

§request_type: u8
§start_index: u8
§

NodeDescReq

Fields

§

PowerDescReq

Fields

§

SimpleDescReq

Fields

§endpoint: u8
§

ActiveEpReq

Fields

§

MatchDescReq

Fields

§profile_id: u16
§input_clusters: Vec<u16>
§output_clusters: Vec<u16>
§

DeviceAnnce

Fields

§ieee: Ieee
§capability: u8
§

BindReq(Binding)

§

UnbindReq(Binding)

§

MgmtLqiReq

Fields

§start_index: u8
§

MgmtRtgReq

Fields

§start_index: u8
§

MgmtBindReq

Fields

§start_index: u8
§

MgmtLeaveReq

Fields

§ieee: Ieee
§flags: u8
§

MgmtPermitJoiningReq

Fields

§duration: u8
§tc_significance: u8
§

MgmtNwkUpdateReq

Fields

§channel_mask: u32
§scan_duration: u8
§scan_count: Option<u8>
§nwk_update_id: Option<u8>
§manager: Option<NodeId>
§

NwkAddrRsp

Fields

§status: u8
§ieee: Ieee
§

IeeeAddrRsp

Fields

§status: u8
§ieee: Ieee
§

NodeDescRsp

Fields

§status: u8
§

PowerDescRsp

Fields

§status: u8
§descriptor: Option<u16>
§

SimpleDescRsp

Fields

§status: u8
§

ActiveEpRsp

Fields

§status: u8
§endpoints: Vec<u8>
§

MatchDescRsp

Fields

§status: u8
§endpoints: Vec<u8>
§

BindRsp

Fields

§status: u8
§

UnbindRsp

Fields

§status: u8
§

MgmtLqiRsp

Fields

§status: u8
§total: u8
§start_index: u8
§neighbors: Vec<Neighbor>
§

MgmtRtgRsp

Fields

§status: u8
§total: u8
§start_index: u8
§routes: Vec<Route>
§

MgmtBindRsp

Fields

§status: u8
§total: u8
§start_index: u8
§bindings: Vec<Binding>
§

MgmtLeaveRsp

Fields

§status: u8
§

MgmtPermitJoiningRsp

Fields

§status: u8
§

MgmtNwkUpdateNotify

Fields

§status: u8
§scanned_channels: u32
§total_transmissions: u16
§transmission_failures: u16
§energy: Vec<u8>
§

Other

A cluster this crate does not decode.

Fields

§cluster: u16
§payload: Vec<u8>

Trait Implementations§

Source§

impl Clone for Body

Source§

fn clone(&self) -> Self

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 Debug for Body

Source§

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

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

impl Eq for Body

Source§

impl PartialEq for Body

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Body

Auto Trait Implementations§

§

impl Freeze for Body

§

impl RefUnwindSafe for Body

§

impl Send for Body

§

impl Sync for Body

§

impl Unpin for Body

§

impl UnsafeUnpin for Body

§

impl UnwindSafe for Body

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.