pub enum RecordError<T, E> {
NotRunning(T),
Full(T),
DirectFailed(WriteFailure<E>),
}Expand description
Admission failure. Rejected records are returned; accepted failed direct writes stay in memory.
Variants§
NotRunning(T)
Admission is closed or startup has not completed.
Full(T)
The configured queue/direct-lane bound was reached.
DirectFailed(WriteFailure<E>)
An accepted direct write failed and remains unconfirmed in the writer.
Trait Implementations§
Source§impl<T, E: Display> Display for RecordError<T, E>
impl<T, E: Display> Display for RecordError<T, E>
Source§impl<T: Debug, E: Error + 'static> Error for RecordError<T, E>
impl<T: Debug, E: Error + 'static> Error for RecordError<T, 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<T, E> Freeze for RecordError<T, E>where
T: Freeze,
impl<T, E> RefUnwindSafe for RecordError<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for RecordError<T, E>
impl<T, E> Sync for RecordError<T, E>
impl<T, E> Unpin for RecordError<T, E>where
T: Unpin,
impl<T, E> UnsafeUnpin for RecordError<T, E>where
T: UnsafeUnpin,
impl<T, E> UnwindSafe for RecordError<T, E>where
T: UnwindSafe,
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