pub enum ResourceFailureCause {
CancelledBySender,
RefusedHashmapUpdate(ApplyHashmapUpdateError),
RetriesExhausted,
LinkVanished,
TransferUnopenable,
TransferCorrupt,
ProofUnsendable,
DecompressionFailed,
DecompressionTimedOut,
OpenTimedOut,
MetadataOverrun,
}Expand description
Why an incoming transfer died. The reference has no analogous signal. A stock RNS receiver’s failures surface only in its own logs; ours ride the failure event by name.
Variants§
CancelledBySender
RefusedHashmapUpdate(ApplyHashmapUpdateError)
RetriesExhausted
LinkVanished
TransferUnopenable
TransferCorrupt
ProofUnsendable
DecompressionFailed
DecompressionTimedOut
OpenTimedOut
MetadataOverrun
The verified stream’s own metadata prefix declares more bytes than the stream holds. Intentional deviation: the reference silently delivers truncated metadata and empty data when the declared length overruns (Python slice leniency); we fail the transfer by name.
Trait Implementations§
Source§impl Clone for ResourceFailureCause
impl Clone for ResourceFailureCause
Source§fn clone(&self) -> ResourceFailureCause
fn clone(&self) -> ResourceFailureCause
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResourceFailureCause
Source§impl Debug for ResourceFailureCause
impl Debug for ResourceFailureCause
impl Eq for ResourceFailureCause
Source§impl From<ResourceFailureCause> for RuntimeResourceFailure
impl From<ResourceFailureCause> for RuntimeResourceFailure
Source§fn from(cause: ResourceFailureCause) -> Self
fn from(cause: ResourceFailureCause) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResourceFailureCause
impl PartialEq for ResourceFailureCause
impl StructuralPartialEq for ResourceFailureCause
Auto Trait Implementations§
impl Freeze for ResourceFailureCause
impl RefUnwindSafe for ResourceFailureCause
impl Send for ResourceFailureCause
impl Sync for ResourceFailureCause
impl Unpin for ResourceFailureCause
impl UnsafeUnpin for ResourceFailureCause
impl UnwindSafe for ResourceFailureCause
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