#[non_exhaustive]pub enum NetworkKind {
WiFi,
Thread,
Ethernet,
}Expand description
Which Matter network-commissioning type a device declared in its
NetworkCommissioning::FeatureMap.
#[non_exhaustive] — future Matter-spec network interfaces
(e.g. Thread Border Router relay) can be added without a breaking
change.
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.
WiFi
Wi-Fi network interface (FeatureMap bit 0).
Thread
Thread network interface (FeatureMap bit 1).
Ethernet
Ethernet network interface (FeatureMap bit 2).
Trait Implementations§
Source§impl Clone for NetworkKind
impl Clone for NetworkKind
Source§fn clone(&self) -> NetworkKind
fn clone(&self) -> NetworkKind
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 moreimpl Copy for NetworkKind
Source§impl Debug for NetworkKind
impl Debug for NetworkKind
impl Eq for NetworkKind
Source§impl Hash for NetworkKind
impl Hash for NetworkKind
Source§impl PartialEq for NetworkKind
impl PartialEq for NetworkKind
impl StructuralPartialEq for NetworkKind
Auto Trait Implementations§
impl Freeze for NetworkKind
impl RefUnwindSafe for NetworkKind
impl Send for NetworkKind
impl Sync for NetworkKind
impl Unpin for NetworkKind
impl UnsafeUnpin for NetworkKind
impl UnwindSafe for NetworkKind
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