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
sourceimpl Clone for EnumerationType
impl Clone for EnumerationType
sourcefn clone(&self) -> EnumerationType
fn clone(&self) -> EnumerationType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for EnumerationType
impl Debug for EnumerationType
sourceimpl From<u8> for EnumerationType
impl From<u8> for EnumerationType
sourcefn from(byte: u8) -> EnumerationType
fn from(byte: u8) -> EnumerationType
Converts to this type from the input type.
sourceimpl Hash for EnumerationType
impl Hash for EnumerationType
sourceimpl PartialEq<EnumerationType> for EnumerationType
impl PartialEq<EnumerationType> for EnumerationType
sourcefn eq(&self, other: &EnumerationType) -> bool
fn eq(&self, other: &EnumerationType) -> bool
impl Copy for EnumerationType
impl Eq for EnumerationType
impl StructuralEq for EnumerationType
impl StructuralPartialEq for EnumerationType
Auto Trait Implementations
impl RefUnwindSafe for EnumerationType
impl Send for EnumerationType
impl Sync for EnumerationType
impl Unpin for EnumerationType
impl UnwindSafe for EnumerationType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more