pub enum MutationAuthorityError<ProjectionError> {
Validation(MutationValidationError),
Append(WalWriterError),
PartialDurability {
sequence: u64,
flush_error: WalWriterError,
},
Apply {
sequence: u64,
source: ProjectionError,
},
}Expand description
Typed stage-aware authority failures.
Variants§
Validation(MutationValidationError)
Validation stage failure.
Append(WalWriterError)
WAL append stage failure.
PartialDurability
Append succeeded but flush failed. The event MAY be durable on restart (OS page cache) but fsync was not confirmed.
Fields
§
flush_error: WalWriterErrorUnderlying flush error.
Apply
Projection apply stage failure after append.
Trait Implementations§
Source§impl<ProjectionError: Clone> Clone for MutationAuthorityError<ProjectionError>
impl<ProjectionError: Clone> Clone for MutationAuthorityError<ProjectionError>
Source§fn clone(&self) -> MutationAuthorityError<ProjectionError>
fn clone(&self) -> MutationAuthorityError<ProjectionError>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<ProjectionError: Debug> Debug for MutationAuthorityError<ProjectionError>
impl<ProjectionError: Debug> Debug for MutationAuthorityError<ProjectionError>
Source§impl<ProjectionError: Display> Display for MutationAuthorityError<ProjectionError>
impl<ProjectionError: Display> Display for MutationAuthorityError<ProjectionError>
Source§impl<ProjectionError: Error + 'static> Error for MutationAuthorityError<ProjectionError>
impl<ProjectionError: Error + 'static> Error for MutationAuthorityError<ProjectionError>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<ProjectionError: PartialEq> PartialEq for MutationAuthorityError<ProjectionError>
impl<ProjectionError: PartialEq> PartialEq for MutationAuthorityError<ProjectionError>
Source§fn eq(&self, other: &MutationAuthorityError<ProjectionError>) -> bool
fn eq(&self, other: &MutationAuthorityError<ProjectionError>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<ProjectionError: Eq> Eq for MutationAuthorityError<ProjectionError>
impl<ProjectionError> StructuralPartialEq for MutationAuthorityError<ProjectionError>
Auto Trait Implementations§
impl<ProjectionError> Freeze for MutationAuthorityError<ProjectionError>where
ProjectionError: Freeze,
impl<ProjectionError> RefUnwindSafe for MutationAuthorityError<ProjectionError>where
ProjectionError: RefUnwindSafe,
impl<ProjectionError> Send for MutationAuthorityError<ProjectionError>where
ProjectionError: Send,
impl<ProjectionError> Sync for MutationAuthorityError<ProjectionError>where
ProjectionError: Sync,
impl<ProjectionError> Unpin for MutationAuthorityError<ProjectionError>where
ProjectionError: Unpin,
impl<ProjectionError> UnsafeUnpin for MutationAuthorityError<ProjectionError>where
ProjectionError: UnsafeUnpin,
impl<ProjectionError> UnwindSafe for MutationAuthorityError<ProjectionError>where
ProjectionError: UnwindSafe,
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