pub enum NetworkCredentials {
WiFi(WiFiCredentials),
Thread(ThreadDataset),
AlreadyOnNetwork,
}Expand description
Operational-network credentials for the commissionee, selecting which
network-provisioning sub-cursor the state machine runs after AddNOC.
Mirrors chip’s AutoCommissioner: network provisioning runs only for
the concrete network type whose credentials are supplied.
NetworkCredentials::WiFiprovisions Wi-Fi viaAddOrUpdateWiFiNetwork+ConnectNetwork.NetworkCredentials::Threadprovisions Thread from an operational dataset viaAddOrUpdateThreadNetwork+ConnectNetwork(the Extended PAN ID is theConnectNetworknetwork_id); the dataset is self-validated atThreadDatasetconstruction.NetworkCredentials::AlreadyOnNetworkskips network provisioning entirely — correct both for Ethernet-only devices and for devices already reachable on their operational network (the usual IP-commissioning case, e.g. a second-fabric commission).
Variants§
WiFi(WiFiCredentials)
Provision Wi-Fi using the supplied station credentials.
Thread(ThreadDataset)
Provision Thread using the supplied operational dataset.
AlreadyOnNetwork
Device is already on an operational network; skip provisioning.
Trait Implementations§
Source§impl Clone for NetworkCredentials
impl Clone for NetworkCredentials
Source§fn clone(&self) -> NetworkCredentials
fn clone(&self) -> NetworkCredentials
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkCredentials
impl Debug for NetworkCredentials
impl Eq for NetworkCredentials
Source§impl PartialEq for NetworkCredentials
impl PartialEq for NetworkCredentials
impl StructuralPartialEq for NetworkCredentials
Auto Trait Implementations§
impl Freeze for NetworkCredentials
impl RefUnwindSafe for NetworkCredentials
impl Send for NetworkCredentials
impl Sync for NetworkCredentials
impl Unpin for NetworkCredentials
impl UnsafeUnpin for NetworkCredentials
impl UnwindSafe for NetworkCredentials
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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