pub struct ReplicateError {
pub seq: u64,
pub reason: String,
pub appended: u64,
}Expand description
Why a SequencerHandle::replicate call stopped.
Everything before ReplicateError::seq in the batch was appended,
folded and made durable; nothing at or after it was. A replica keeps
what it verified and stops there, rather than skipping on.
Fields§
§seq: u64The sequence number of the entry that was refused.
reason: StringWhy: a position or parent that does not continue this log, a hash that is not the entry’s, a projection that cannot fold it, or a storage failure.
appended: u64How many entries of the batch were appended before it.
Trait Implementations§
Source§impl Clone for ReplicateError
impl Clone for ReplicateError
Source§fn clone(&self) -> ReplicateError
fn clone(&self) -> ReplicateError
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 ReplicateError
impl Debug for ReplicateError
Source§impl Display for ReplicateError
impl Display for ReplicateError
Source§impl PartialEq for ReplicateError
impl PartialEq for ReplicateError
Source§fn eq(&self, other: &ReplicateError) -> bool
fn eq(&self, other: &ReplicateError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReplicateError
impl StructuralPartialEq for ReplicateError
Auto Trait Implementations§
impl Freeze for ReplicateError
impl RefUnwindSafe for ReplicateError
impl Send for ReplicateError
impl Sync for ReplicateError
impl Unpin for ReplicateError
impl UnsafeUnpin for ReplicateError
impl UnwindSafe for ReplicateError
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