pub enum PresenceError<K> {
Stale {
participant: K,
observed: PresenceVersion,
current: PresenceVersion,
lifetime: Duration,
},
ConflictingVersion {
participant: K,
version: PresenceVersion,
lifetime: Duration,
},
TimerCollision {
participant: K,
existing: K,
timer_id: TimerId,
version: PresenceVersion,
lifetime: Duration,
},
GenerationExhausted {
participant: K,
version: PresenceVersion,
lifetime: Duration,
},
}Expand description
Typed rejection of presence evidence.
Variants§
Stale
Evidence predates the retained participant version.
Fields
§
participant: KParticipant.
§
observed: PresenceVersionRejected version.
§
current: PresenceVersionCurrent version.
ConflictingVersion
Evidence reuses a version with a different lifetime or phase.
TimerCollision
A currently present different participant owns the mapped timer key.
Fields
§
participant: KRejected participant.
§
existing: KExisting participant owning the timer key.
§
version: PresenceVersionExact rejected evidence version.
GenerationExhausted
No fresh timer generation is representable.
Fields
§
participant: KParticipant whose refresh was rejected.
§
version: PresenceVersionExact rejected evidence version.
Trait Implementations§
Source§impl<K: Clone> Clone for PresenceError<K>
impl<K: Clone> Clone for PresenceError<K>
Source§fn clone(&self) -> PresenceError<K>
fn clone(&self) -> PresenceError<K>
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<K: Debug> Debug for PresenceError<K>
impl<K: Debug> Debug for PresenceError<K>
Source§impl<K> Display for PresenceError<K>
impl<K> Display for PresenceError<K>
Source§impl<K> Error for PresenceError<K>
impl<K> Error for PresenceError<K>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<K: PartialEq> PartialEq for PresenceError<K>
impl<K: PartialEq> PartialEq for PresenceError<K>
impl<K: Eq> Eq for PresenceError<K>
impl<K> StructuralPartialEq for PresenceError<K>
Auto Trait Implementations§
impl<K> Freeze for PresenceError<K>where
K: Freeze,
impl<K> RefUnwindSafe for PresenceError<K>where
K: RefUnwindSafe,
impl<K> Send for PresenceError<K>where
K: Send,
impl<K> Sync for PresenceError<K>where
K: Sync,
impl<K> Unpin for PresenceError<K>where
K: Unpin,
impl<K> UnsafeUnpin for PresenceError<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for PresenceError<K>where
K: UnwindSafe,
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