pub enum NetworkCreds {
WiFi {
ssid: Vec<u8>,
creds: Vec<u8>,
},
Thread {
dataset: Vec<u8>,
},
AlreadyOnNetwork,
}Expand description
Credentials for the network the device should join after commissioning.
Variants§
WiFi
Commission a Wi-Fi device: provide SSID and passphrase bytes.
Thread
Commission a Thread device: provide the operational dataset bytes.
AlreadyOnNetwork
Device is already on the IP network (Ethernet or pre-provisioned); skip NetworkCommissioning cluster writes.
Trait Implementations§
Source§impl Clone for NetworkCreds
impl Clone for NetworkCreds
Source§fn clone(&self) -> NetworkCreds
fn clone(&self) -> NetworkCreds
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NetworkCreds
impl RefUnwindSafe for NetworkCreds
impl Send for NetworkCreds
impl Sync for NetworkCreds
impl Unpin for NetworkCreds
impl UnwindSafe for NetworkCreds
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