pub enum AdapterEvent {
Message {
source: NodeId,
source_ieee: Option<Ieee>,
aps: Aps,
broadcast: bool,
group: Option<u16>,
lqi: u8,
rssi: Option<i8>,
payload: Vec<u8>,
},
Joined {
nwk: NodeId,
ieee: Ieee,
parent: NodeId,
rejoin: bool,
},
Left {
nwk: NodeId,
ieee: Ieee,
},
KeyExchange {
ieee: Ieee,
success: bool,
},
RouteRecord {
source: NodeId,
ieee: Option<Ieee>,
relays: Vec<NodeId>,
lqi: Option<u8>,
rssi: Option<i8>,
},
Delivery {
tag: u16,
delivered: bool,
},
NetworkDown,
NetworkUp,
Failed(String),
}Expand description
Something the NCP reported.
Variants§
Message
An APS frame for the host.
Fields
Joined
A device joined or rejoined.
Fields
Left
A device left.
KeyExchange
Trust center link key exchange with a device finished.
RouteRecord
A route record arrived.
Fields
Delivery
A frame given to Adapter::send_unicast was delivered (APS
acknowledged) or not.
NetworkDown
The network went down.
NetworkUp
The network came up.
Failed(String)
The adapter failed (NCP reset or port lost); restart the host.
Trait Implementations§
Source§impl Clone for AdapterEvent
impl Clone for AdapterEvent
Source§impl Debug for AdapterEvent
impl Debug for AdapterEvent
impl Eq for AdapterEvent
Source§impl PartialEq for AdapterEvent
impl PartialEq for AdapterEvent
impl StructuralPartialEq for AdapterEvent
Auto Trait Implementations§
impl Freeze for AdapterEvent
impl RefUnwindSafe for AdapterEvent
impl Send for AdapterEvent
impl Sync for AdapterEvent
impl Unpin for AdapterEvent
impl UnsafeUnpin for AdapterEvent
impl UnwindSafe for AdapterEvent
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