pub enum EnumerationType {
Available,
Connected,
Disconnected,
Unknown,
}
Expand description
Type of enumeration of a device.
Variants§
Available
Device is available (enumeration triggered by user: Enumerate
).
This enumeration type can occur multiple times for the same device.
Connected
Device is newly connected (automatically send by Brick after establishing a communication connection). This indicates that the device has potentially lost its previous configuration and needs to be reconfigured.
Disconnected
Device is disconnected (only possible for USB connection). In this case only uid and enumerationType are valid.
Unknown
Device returned an unknown enumeration type.
Trait Implementations§
Source§impl Clone for EnumerationType
impl Clone for EnumerationType
Source§fn clone(&self) -> EnumerationType
fn clone(&self) -> EnumerationType
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 moreSource§impl Debug for EnumerationType
impl Debug for EnumerationType
Source§impl From<u8> for EnumerationType
impl From<u8> for EnumerationType
Source§fn from(byte: u8) -> EnumerationType
fn from(byte: u8) -> EnumerationType
Converts to this type from the input type.
Source§impl Hash for EnumerationType
impl Hash for EnumerationType
Source§impl PartialEq for EnumerationType
impl PartialEq for EnumerationType
impl Copy for EnumerationType
impl Eq for EnumerationType
impl StructuralPartialEq for EnumerationType
Auto Trait Implementations§
impl Freeze for EnumerationType
impl RefUnwindSafe for EnumerationType
impl Send for EnumerationType
impl Sync for EnumerationType
impl Unpin for EnumerationType
impl UnwindSafe for EnumerationType
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