pub enum HardwareEvent {
Notification(String, Endpoint, Vec<u8>),
Disconnected(String),
}Expand description
Events that can be emitted from a Hardware.
Variants§
Notification(String, Endpoint, Vec<u8>)
Device received data
Disconnected(String)
Device disconnected
Trait Implementations§
source§impl Clone for HardwareEvent
impl Clone for HardwareEvent
source§fn clone(&self) -> HardwareEvent
fn clone(&self) -> HardwareEvent
Returns a copy 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 RefUnwindSafe for HardwareEvent
impl Send for HardwareEvent
impl Sync for HardwareEvent
impl Unpin for HardwareEvent
impl UnwindSafe for HardwareEvent
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