#[non_exhaustive]pub enum AssetRole {
Router,
Switch,
AccessPoint,
Phone,
Iot,
Host,
Unknown,
}Available on crate feature
asset only.Expand description
Coarse device role derived from an Asset’s capability
bitmask. Issue #137 (0.22).
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.
Router
Layer 3 router.
Switch
Layer 2 switch / bridge.
AccessPoint
802.11 access point.
Phone
VoIP / IP phone.
Iot
UPnP / DLNA consumer / IoT device.
Host
General host / station.
Unknown
No capability signal yet.
Implementations§
Trait Implementations§
impl Copy for AssetRole
Source§impl<'de> Deserialize<'de> for AssetRole
Available on crate feature serde only.
impl<'de> Deserialize<'de> for AssetRole
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AssetRole
impl StructuralPartialEq for AssetRole
Auto Trait Implementations§
impl Freeze for AssetRole
impl RefUnwindSafe for AssetRole
impl Send for AssetRole
impl Sync for AssetRole
impl Unpin for AssetRole
impl UnsafeUnpin for AssetRole
impl UnwindSafe for AssetRole
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