#[non_exhaustive]pub enum AnyAdapter {
Ezsp(EzspAdapter),
Znp(ZnpAdapter),
Deconz(DeconzAdapter),
}Expand description
One of the supported coordinator families.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ezsp(EzspAdapter)
Silicon Labs EmberZNet.
Znp(ZnpAdapter)
Texas Instruments Z-Stack.
Deconz(DeconzAdapter)
dresden elektronik deCONZ.
Implementations§
Source§impl AnyAdapter
impl AnyAdapter
Trait Implementations§
Source§impl Adapter for AnyAdapter
impl Adapter for AnyAdapter
Source§fn info(&self) -> AdapterInfo
fn info(&self) -> AdapterInfo
The NCP’s identity.
Source§async fn start(
&self,
mode: StartMode,
) -> Result<(StartOutcome, NetworkInfo), HostError>
async fn start( &self, mode: StartMode, ) -> Result<(StartOutcome, NetworkInfo), HostError>
Configure the NCP and bring the network up.
Source§async fn permit_join(
&self,
seconds: u8,
policy: &JoinPolicy,
) -> Result<(), HostError>
async fn permit_join( &self, seconds: u8, policy: &JoinPolicy, ) -> Result<(), HostError>
Open (seconds > 0) or close (0) the coordinator for joining.
Source§async fn add_join_key(&self, ieee: Ieee, key: Key) -> Result<(), HostError>
async fn add_join_key(&self, ieee: Ieee, key: Key) -> Result<(), HostError>
Let the device
ieee join with key (from its install code).Source§async fn send_unicast(
&self,
nwk: NodeId,
aps: Aps,
payload: Vec<u8>,
) -> Result<u16, HostError>
async fn send_unicast( &self, nwk: NodeId, aps: Aps, payload: Vec<u8>, ) -> Result<u16, HostError>
Send an APS unicast. Returns a tag that a later
AdapterEvent::Delivery names.Source§async fn send_broadcast(
&self,
destination: NodeId,
aps: Aps,
payload: Vec<u8>,
) -> Result<(), HostError>
async fn send_broadcast( &self, destination: NodeId, aps: Aps, payload: Vec<u8>, ) -> Result<(), HostError>
Send an APS broadcast to 0xFFFF, 0xFFFD or 0xFFFC.
Source§async fn network_info(&self) -> Result<NetworkInfo, HostError>
async fn network_info(&self) -> Result<NetworkInfo, HostError>
Read the running network’s parameters again (after a channel
change).
Source§async fn active_scan(&self, channel_mask: u32) -> Result<Vec<Beacon>, HostError>
async fn active_scan(&self, channel_mask: u32) -> Result<Vec<Beacon>, HostError>
Listen for other networks’ beacons on the channels in the mask
(an active scan). Works before a network is formed. An NCP family
that cannot scan returns none.
Auto Trait Implementations§
impl !Freeze for AnyAdapter
impl !RefUnwindSafe for AnyAdapter
impl !UnwindSafe for AnyAdapter
impl Send for AnyAdapter
impl Sync for AnyAdapter
impl Unpin for AnyAdapter
impl UnsafeUnpin for AnyAdapter
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