pub enum NamedWriteError<E> {
Producer {
source: E,
cleanup_error: Option<Error>,
},
BeforePublication {
source: Error,
cleanup_error: Option<Error>,
},
AfterPublication {
source: Error,
},
}Expand description
Failure from a named or streamed producer and durable publication, retaining cleanup evidence.
Variants§
Producer
The producer or its output validation failed; no publication was attempted.
Fields
§
source: EOriginal consumer error, including any bounded process evidence.
BeforePublication
Filesystem admission, synchronization or rename failed before publication.
Fields
AfterPublication
Publication succeeded, but staging cleanup or final directory sync failed.
Trait Implementations§
Source§impl<E: Debug> Debug for NamedWriteError<E>
impl<E: Debug> Debug for NamedWriteError<E>
Source§impl<E: Display> Display for NamedWriteError<E>
impl<E: Display> Display for NamedWriteError<E>
Source§impl<E: Error + 'static> Error for NamedWriteError<E>
impl<E: Error + 'static> Error for NamedWriteError<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> !RefUnwindSafe for NamedWriteError<E>
impl<E> !UnwindSafe for NamedWriteError<E>
impl<E> Freeze for NamedWriteError<E>where
E: Freeze,
impl<E> Send for NamedWriteError<E>where
E: Send,
impl<E> Sync for NamedWriteError<E>where
E: Sync,
impl<E> Unpin for NamedWriteError<E>where
E: Unpin,
impl<E> UnsafeUnpin for NamedWriteError<E>where
E: UnsafeUnpin,
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