pub enum BufferFlushError<E> {
NotStarted,
Stopped,
Write(WriteFailure<E>),
Deadline,
}Expand description
Flush failure; inspect the snapshot and unconfirmed records before recovery.
Variants§
NotStarted
Start must be called explicitly before flushing records.
Stopped
The worker has stopped with records still awaiting reconciliation.
Write(WriteFailure<E>)
A retained batch or direct record failed.
Deadline
The caller’s deadline elapsed. No durability is implied.
Trait Implementations§
Source§impl<E: Debug> Debug for BufferFlushError<E>
impl<E: Debug> Debug for BufferFlushError<E>
Source§impl<E: Display> Display for BufferFlushError<E>
impl<E: Display> Display for BufferFlushError<E>
Source§impl<E: Error + 'static> Error for BufferFlushError<E>
impl<E: Error + 'static> Error for BufferFlushError<E>
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()
Auto Trait Implementations§
impl<E> Freeze for BufferFlushError<E>
impl<E> RefUnwindSafe for BufferFlushError<E>where
E: RefUnwindSafe,
impl<E> Send for BufferFlushError<E>
impl<E> Sync for BufferFlushError<E>
impl<E> Unpin for BufferFlushError<E>
impl<E> UnsafeUnpin for BufferFlushError<E>
impl<E> UnwindSafe for BufferFlushError<E>where
E: RefUnwindSafe,
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