pub enum ReplayError {
EpochMismatch(ReplayWindow),
CursorExpired(ReplayWindow),
CursorBeyondWindow(ReplayWindow),
GapCrossed(ReplayWindow),
}Expand description
Why a replay could not be served.
Variants§
EpochMismatch(ReplayWindow)
The cursor was minted by a previous tape lifetime. Its offsets mean nothing here, and dense offsets make that undetectable without the epoch.
CursorExpired(ReplayWindow)
The cursor is older than the oldest retained record.
CursorBeyondWindow(ReplayWindow)
The cursor is one this view has never issued. Refused rather than treated as caught up, which would suppress delivery until the view’s offsets reached it.
GapCrossed(ReplayWindow)
Serving this cursor would cross a known hole in the tape.
Implementations§
Source§impl ReplayError
impl ReplayError
pub fn window(&self) -> &ReplayWindow
Trait Implementations§
Source§impl Clone for ReplayError
impl Clone for ReplayError
Source§impl Debug for ReplayError
impl Debug for ReplayError
impl Eq for ReplayError
Source§impl PartialEq for ReplayError
impl PartialEq for ReplayError
impl StructuralPartialEq for ReplayError
Auto Trait Implementations§
impl Freeze for ReplayError
impl RefUnwindSafe for ReplayError
impl Send for ReplayError
impl Sync for ReplayError
impl Unpin for ReplayError
impl UnsafeUnpin for ReplayError
impl UnwindSafe for ReplayError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.