pub enum FromOffset {
TooOld,
Future,
}Expand description
Reason ReplicationSource::frames_from cannot serve a replica
from the backlog.
Variants§
TooOld
The replica is asking for an offset we already evicted; the streaming loop must initiate a snapshot ship.
Future
The replica’s requested offset is greater than the next offset we would assign — peer is ahead of us (data-dir wipe, epoch confusion, or bug). The caller should drop the link.
Trait Implementations§
Source§impl Debug for FromOffset
impl Debug for FromOffset
impl Eq for FromOffset
Source§impl PartialEq for FromOffset
impl PartialEq for FromOffset
Source§fn eq(&self, other: &FromOffset) -> bool
fn eq(&self, other: &FromOffset) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FromOffset
Auto Trait Implementations§
impl Freeze for FromOffset
impl RefUnwindSafe for FromOffset
impl Send for FromOffset
impl Sync for FromOffset
impl Unpin for FromOffset
impl UnsafeUnpin for FromOffset
impl UnwindSafe for FromOffset
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