pub enum LeaveStaleAuthority {
Live {
conversation_id: ConversationId,
participant_id: ParticipantId,
presented_generation: Generation,
leave_attempt_token: LeaveAttemptToken,
current_generation: Generation,
},
CommittedLeaveTombstone {
conversation_id: ConversationId,
participant_id: ParticipantId,
presented_generation: Generation,
leave_attempt_token: LeaveAttemptToken,
retired_generation: Generation,
},
}Expand description
Leave-specific stale-authority tagged union.
Variants§
Live
Live generation or secret mismatch.
Fields
§
conversation_id: ConversationIdConversation from the request.
§
participant_id: ParticipantIdParticipant from the request.
§
presented_generation: GenerationPresented generation.
§
leave_attempt_token: LeaveAttemptTokenPresented Leave token.
§
current_generation: GenerationCurrent generation.
CommittedLeaveTombstone
Exact committed Leave token with a mismatching secret.
Fields
§
conversation_id: ConversationIdConversation from the request.
§
participant_id: ParticipantIdParticipant from the request.
§
presented_generation: GenerationPresented generation.
§
leave_attempt_token: LeaveAttemptTokenPresented Leave token.
§
retired_generation: GenerationPermanent retired generation.
Implementations§
Source§impl LeaveStaleAuthority
impl LeaveStaleAuthority
Returns the Leave-specific outer authority-state tag.
Trait Implementations§
Source§impl Clone for LeaveStaleAuthority
impl Clone for LeaveStaleAuthority
Source§fn clone(&self) -> LeaveStaleAuthority
fn clone(&self) -> LeaveStaleAuthority
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 moreSource§impl Debug for LeaveStaleAuthority
impl Debug for LeaveStaleAuthority
impl Eq for LeaveStaleAuthority
Source§impl PartialEq for LeaveStaleAuthority
impl PartialEq for LeaveStaleAuthority
impl StructuralPartialEq for LeaveStaleAuthority
Auto Trait Implementations§
impl Freeze for LeaveStaleAuthority
impl RefUnwindSafe for LeaveStaleAuthority
impl Send for LeaveStaleAuthority
impl Sync for LeaveStaleAuthority
impl Unpin for LeaveStaleAuthority
impl UnsafeUnpin for LeaveStaleAuthority
impl UnwindSafe for LeaveStaleAuthority
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