pub enum ConnectionEvent {
Disconnected,
Connected,
}
Expand description
Events generated by Adapter::device_connection_events
Variants§
Disconnected
The device has disconnected from the host system
Connected
The device has connected to the host system
Trait Implementations§
Source§impl Clone for ConnectionEvent
impl Clone for ConnectionEvent
Source§fn clone(&self) -> ConnectionEvent
fn clone(&self) -> ConnectionEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConnectionEvent
impl Debug for ConnectionEvent
Source§impl Hash for ConnectionEvent
impl Hash for ConnectionEvent
Source§impl Ord for ConnectionEvent
impl Ord for ConnectionEvent
Source§fn cmp(&self, other: &ConnectionEvent) -> Ordering
fn cmp(&self, other: &ConnectionEvent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConnectionEvent
impl PartialEq for ConnectionEvent
Source§impl PartialOrd for ConnectionEvent
impl PartialOrd for ConnectionEvent
impl Copy for ConnectionEvent
impl Eq for ConnectionEvent
impl StructuralPartialEq for ConnectionEvent
Auto Trait Implementations§
impl Freeze for ConnectionEvent
impl RefUnwindSafe for ConnectionEvent
impl Send for ConnectionEvent
impl Sync for ConnectionEvent
impl Unpin for ConnectionEvent
impl UnwindSafe for ConnectionEvent
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