#[repr(u8)]pub enum ForwardRegisterOutcome {
Ok = 0,
NotPrimary = 1,
NotCaughtUp = 2,
PipelineFull = 3,
InProgress = 4,
Canceled = 5,
ClientIdOwnedByAnotherUser = 6,
}Expand description
Wire verdict on a forwarded register.
Mirrors the server-side submit error one-for-one so the backup can surface
the primary’s exact answer: every variant but
Self::ClientIdOwnedByAnotherUser is transient and replayable.
Wire-version pinned, like EvictionReason: reordering or reusing a
discriminant silently reinterprets a live cluster’s frames.
Variants§
Ok = 0
Committed; epoch and watermark carry the bind.
NotPrimary = 1
NotCaughtUp = 2
Reserved: the register submit parks instead of bouncing when the primary is not caught up, so nothing produces this today. Wire-pinned, so it must keep its discriminant either way.
PipelineFull = 3
InProgress = 4
Canceled = 5
ClientIdOwnedByAnotherUser = 6
Terminal: the presented client id belongs to another user.
Trait Implementations§
Source§impl CheckedBitPattern for ForwardRegisterOutcome
impl CheckedBitPattern for ForwardRegisterOutcome
Source§type Bits = u8
type Bits = u8
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl Clone for ForwardRegisterOutcome
impl Clone for ForwardRegisterOutcome
Source§fn clone(&self) -> ForwardRegisterOutcome
fn clone(&self) -> ForwardRegisterOutcome
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 ForwardRegisterOutcome
Source§impl Debug for ForwardRegisterOutcome
impl Debug for ForwardRegisterOutcome
impl Eq for ForwardRegisterOutcome
impl NoUninit for ForwardRegisterOutcome
Source§impl PartialEq for ForwardRegisterOutcome
impl PartialEq for ForwardRegisterOutcome
impl StructuralPartialEq for ForwardRegisterOutcome
Auto Trait Implementations§
impl Freeze for ForwardRegisterOutcome
impl RefUnwindSafe for ForwardRegisterOutcome
impl Send for ForwardRegisterOutcome
impl Sync for ForwardRegisterOutcome
impl Unpin for ForwardRegisterOutcome
impl UnsafeUnpin for ForwardRegisterOutcome
impl UnwindSafe for ForwardRegisterOutcome
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