pub enum DeviceEvent<'a> {
Discovered {
switch_id: SwitchId,
signing_public_key: Ed25519PublicKey,
},
Connected,
HostEndpoint(EndpointId),
EndpointAlive(EndpointId),
EndpointTimedOut(EndpointId),
EndpointVia {
endpoint: EndpointId,
switch_id: SwitchId,
},
EndpointPacket {
source: EndpointId,
payload: &'a [u8],
},
Ignored,
}Variants§
Discovered
Connected
HostEndpoint(EndpointId)
EndpointAlive(EndpointId)
EndpointTimedOut(EndpointId)
EndpointVia
EndpointPacket
Ignored
Trait Implementations§
Source§impl<'a> Clone for DeviceEvent<'a>
impl<'a> Clone for DeviceEvent<'a>
Source§fn clone(&self) -> DeviceEvent<'a>
fn clone(&self) -> DeviceEvent<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for DeviceEvent<'a>
Source§impl<'a> Debug for DeviceEvent<'a>
impl<'a> Debug for DeviceEvent<'a>
impl<'a> Eq for DeviceEvent<'a>
Source§impl<'a> PartialEq for DeviceEvent<'a>
impl<'a> PartialEq for DeviceEvent<'a>
impl<'a> StructuralPartialEq for DeviceEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeviceEvent<'a>
impl<'a> RefUnwindSafe for DeviceEvent<'a>
impl<'a> Send for DeviceEvent<'a>
impl<'a> Sync for DeviceEvent<'a>
impl<'a> Unpin for DeviceEvent<'a>
impl<'a> UnsafeUnpin for DeviceEvent<'a>
impl<'a> UnwindSafe for DeviceEvent<'a>
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