pub struct StreamAppendFailure { /* private fields */ }Expand description
An unchanged source error together with evidence local to one append.
Implementations§
Source§impl StreamAppendFailure
impl StreamAppendFailure
Sourcepub fn unknown(source: RuntimeError) -> Self
pub fn unknown(source: RuntimeError) -> Self
Retain an error when no append-local committedness proof is available. This constructor cannot assert that an append was dropped.
Sourcepub fn source(&self) -> &RuntimeError
pub fn source(&self) -> &RuntimeError
Borrow the original error without rewriting its fields or provenance.
Sourcepub fn disposition(&self) -> StreamAppendDisposition
pub fn disposition(&self) -> StreamAppendDisposition
Evidence about this append, not the enclosing handler’s disposition.
Sourcepub fn into_parts(self) -> (RuntimeError, StreamAppendDisposition)
pub fn into_parts(self) -> (RuntimeError, StreamAppendDisposition)
Separate the unchanged source from append-local committedness evidence.
Sourcepub fn into_source(self) -> RuntimeError
pub fn into_source(self) -> RuntimeError
Preserve the compatibility error path without an additional wrapper.
Trait Implementations§
Source§impl Debug for StreamAppendFailure
impl Debug for StreamAppendFailure
Source§impl Display for StreamAppendFailure
impl Display for StreamAppendFailure
Source§impl Error for StreamAppendFailure
impl Error for StreamAppendFailure
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 !RefUnwindSafe for StreamAppendFailure
impl !UnwindSafe for StreamAppendFailure
impl Forget for StreamAppendFailure
impl Freeze for StreamAppendFailurewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const RuntimeError is !null: Freeze,
PhantomData<RuntimeError>: Freeze,
&'static str: Freeze,
*const LintFixFailureDetail is !null: Freeze,
PhantomData<LintFixFailureDetail>: Freeze,
*const AuditObligationFailure is !null: Freeze,
PhantomData<AuditObligationFailure>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const StorageError is !null: Freeze,
PhantomData<StorageError>: Freeze,
String: Freeze,
*const SecretMatch is !null: Freeze,
PhantomData<SecretMatch>: Freeze,
*const dyn Error + Sync + Send is !null: Freeze,
PhantomData<dyn Error + Sync + Send>: Freeze,
PhantomData<MissingPackDependency>: Freeze,
PhantomData<String>: Freeze,
*const ReceiptRefusal is !null: Freeze,
PhantomData<ReceiptRefusal>: Freeze,
PhantomData<RefusalEventRecording>: Freeze,
*const BatchWriteContext is !null: Freeze,
PhantomData<BatchWriteContext>: Freeze,
PhantomData<Uuid>: Freeze,
*const DenialReceipt is !null: Freeze,
PhantomData<DenialReceipt>: Freeze,
PhantomData<(Cow<'static, str>, Cow<'static, str>)>: Freeze,
impl Move for StreamAppendFailure
impl Send for StreamAppendFailurewhere
RawVecInner: Send,
BoxRaw<RuntimeError>: Send,
&'static str: Send,
BoxRaw<LintFixFailureDetail>: Send,
BoxRaw<AuditObligationFailure>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
BoxRaw<StorageError>: Send,
String: Send,
BoxRaw<SecretMatch>: Send,
BoxRaw<dyn Error + Sync + Send>: Send,
BoxRaw<ReceiptRefusal>: Send,
BoxRaw<BatchWriteContext>: Send,
BoxRaw<DenialReceipt>: Send,
impl Sync for StreamAppendFailurewhere
RawVecInner: Sync,
BoxRaw<RuntimeError>: Sync,
BoxRaw<LintFixFailureDetail>: Sync,
BoxRaw<AuditObligationFailure>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
BoxRaw<StorageError>: Sync,
String: Sync,
BoxRaw<SecretMatch>: Sync,
BoxRaw<dyn Error + Sync + Send>: Sync,
BoxRaw<ReceiptRefusal>: Sync,
BoxRaw<BatchWriteContext>: Sync,
BoxRaw<DenialReceipt>: Sync,
impl Unpin for StreamAppendFailurewhere
*const u8 is !null: Unpin,
Box<RuntimeError>: Unpin,
&'static str: Unpin,
Box<LintFixFailureDetail>: Unpin,
Box<AuditObligationFailure>: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
Box<StorageError>: Unpin,
String: Unpin,
Box<SecretMatch>: Unpin,
Box<dyn Error + Sync + Send>: Unpin,
Box<ReceiptRefusal>: Unpin,
Box<BatchWriteContext>: Unpin,
Box<DenialReceipt>: Unpin,
impl UnsafeUnpin for StreamAppendFailurewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const RuntimeError is !null: UnsafeUnpin,
PhantomData<RuntimeError>: UnsafeUnpin,
&'static str: UnsafeUnpin,
*const LintFixFailureDetail is !null: UnsafeUnpin,
PhantomData<LintFixFailureDetail>: UnsafeUnpin,
*const AuditObligationFailure is !null: UnsafeUnpin,
PhantomData<AuditObligationFailure>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const StorageError is !null: UnsafeUnpin,
PhantomData<StorageError>: UnsafeUnpin,
String: UnsafeUnpin,
*const SecretMatch is !null: UnsafeUnpin,
PhantomData<SecretMatch>: UnsafeUnpin,
*const dyn Error + Sync + Send is !null: UnsafeUnpin,
PhantomData<dyn Error + Sync + Send>: UnsafeUnpin,
PhantomData<MissingPackDependency>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ReceiptRefusal is !null: UnsafeUnpin,
PhantomData<ReceiptRefusal>: UnsafeUnpin,
PhantomData<RefusalEventRecording>: UnsafeUnpin,
*const BatchWriteContext is !null: UnsafeUnpin,
PhantomData<BatchWriteContext>: UnsafeUnpin,
PhantomData<Uuid>: UnsafeUnpin,
*const DenialReceipt is !null: UnsafeUnpin,
PhantomData<DenialReceipt>: UnsafeUnpin,
PhantomData<(Cow<'static, str>, Cow<'static, str>)>: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more