pub enum DeviceEvent {
Trust(TrustedDevice),
Revoke(DevicePublicKey),
// some variants omitted
}Expand description
Device event records trust and revocation of account devices.
Variants§
Trust(TrustedDevice)
Device was trusted.
Revoke(DevicePublicKey)
Device had it’s trustworhtiness revoked.
Typically this would occur when a device is lost or stolen.
Trait Implementations§
Source§impl Clone for DeviceEvent
impl Clone for DeviceEvent
Source§fn clone(&self) -> DeviceEvent
fn clone(&self) -> DeviceEvent
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 moreSource§impl Debug for DeviceEvent
impl Debug for DeviceEvent
Source§impl Decodable for DeviceEvent
impl Decodable for DeviceEvent
Source§impl Default for DeviceEvent
impl Default for DeviceEvent
Source§fn default() -> DeviceEvent
fn default() -> DeviceEvent
Returns the “default value” for a type. Read more
Source§impl Encodable for DeviceEvent
impl Encodable for DeviceEvent
Source§fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Encode self into the binary writer.
Source§impl LogEvent for DeviceEvent
impl LogEvent for DeviceEvent
Source§fn event_kind(&self) -> EventKind
fn event_kind(&self) -> EventKind
Get the event kind for this event.
Source§impl PartialEq for DeviceEvent
impl PartialEq for DeviceEvent
impl Eq for DeviceEvent
impl StructuralPartialEq for DeviceEvent
Auto Trait Implementations§
impl Freeze for DeviceEvent
impl RefUnwindSafe for DeviceEvent
impl Send for DeviceEvent
impl Sync for DeviceEvent
impl Unpin for DeviceEvent
impl UnwindSafe for DeviceEvent
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