#[non_exhaustive]pub enum RegistrationEvent {
Registered {
since: Instant,
until: Instant,
},
Renewed {
until: Instant,
},
Refused {
code: BvlcResultCode,
},
Unanswered,
Lapsed,
}Expand description
A change in a foreign device’s registration, reported once.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Registered
A success while no lease was live: registered from since until
until.
Renewed
A success while a lease was live: it now ends at until.
Refused
The BBMD refused an attempt. A lease still live stays.
Fields
§
code: BvlcResultCodeThe result code it refused with.
Unanswered
An attempt ended without an answer: it timed out, or sending it failed.
Lapsed
The lease ended with nothing newer proven.
Trait Implementations§
Source§impl Clone for RegistrationEvent
impl Clone for RegistrationEvent
impl Copy for RegistrationEvent
Source§impl Debug for RegistrationEvent
impl Debug for RegistrationEvent
impl Eq for RegistrationEvent
Source§impl PartialEq for RegistrationEvent
impl PartialEq for RegistrationEvent
impl StructuralPartialEq for RegistrationEvent
Auto Trait Implementations§
impl Freeze for RegistrationEvent
impl RefUnwindSafe for RegistrationEvent
impl Send for RegistrationEvent
impl Sync for RegistrationEvent
impl Unpin for RegistrationEvent
impl UnsafeUnpin for RegistrationEvent
impl UnwindSafe for RegistrationEvent
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