pub enum ConnectionIncarnationExhausted {
ServerIncarnation,
ConnectionOrdinal {
attempted_server_incarnation: u64,
},
}Expand description
Connection-incarnation mint exhausted one monotonic component.
The enum shape fixes current_value to u64::MAX and makes the server arm
carry no attempted incarnation while the ordinal arm always carries one.
Variants§
ServerIncarnation
Persisted server-incarnation counter is exhausted.
ConnectionOrdinal
Connection ordinal is exhausted for this server incarnation.
Implementations§
Source§impl ConnectionIncarnationExhausted
impl ConnectionIncarnationExhausted
Sourcepub const fn current_value(self) -> u64
pub const fn current_value(self) -> u64
Returns the terminal current component value.
Sourcepub const fn attempted_server_incarnation(self) -> Option<u64>
pub const fn attempted_server_incarnation(self) -> Option<u64>
Returns the attempted server incarnation only for ordinal exhaustion.
Trait Implementations§
Source§impl Clone for ConnectionIncarnationExhausted
impl Clone for ConnectionIncarnationExhausted
Source§fn clone(&self) -> ConnectionIncarnationExhausted
fn clone(&self) -> ConnectionIncarnationExhausted
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 moreimpl Copy for ConnectionIncarnationExhausted
impl Eq for ConnectionIncarnationExhausted
impl StructuralPartialEq for ConnectionIncarnationExhausted
Auto Trait Implementations§
impl Freeze for ConnectionIncarnationExhausted
impl RefUnwindSafe for ConnectionIncarnationExhausted
impl Send for ConnectionIncarnationExhausted
impl Sync for ConnectionIncarnationExhausted
impl Unpin for ConnectionIncarnationExhausted
impl UnsafeUnpin for ConnectionIncarnationExhausted
impl UnwindSafe for ConnectionIncarnationExhausted
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