pub enum PresencePhase {
Present {
version: PresenceVersion,
generation: TimerGeneration,
lifetime: Duration,
},
Expired {
version: PresenceVersion,
generation: TimerGeneration,
},
}Expand description
Complete retained phase for one known participant.
Variants§
Present
Participant is present until matching timer evidence arrives.
Fields
§
version: PresenceVersionLatest evidence version.
§
generation: TimerGenerationCurrent expiry generation.
Expired
Matching expiry was committed and retained as a tombstone.
Fields
§
version: PresenceVersionEvidence version that established the expired incarnation.
§
generation: TimerGenerationExpired timer generation.
Trait Implementations§
Source§impl Clone for PresencePhase
impl Clone for PresencePhase
Source§fn clone(&self) -> PresencePhase
fn clone(&self) -> PresencePhase
Returns a duplicate 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 PresencePhase
impl Debug for PresencePhase
Source§impl PartialEq for PresencePhase
impl PartialEq for PresencePhase
impl Copy for PresencePhase
impl Eq for PresencePhase
impl StructuralPartialEq for PresencePhase
Auto Trait Implementations§
impl Freeze for PresencePhase
impl RefUnwindSafe for PresencePhase
impl Send for PresencePhase
impl Sync for PresencePhase
impl Unpin for PresencePhase
impl UnsafeUnpin for PresencePhase
impl UnwindSafe for PresencePhase
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