pub enum ChainError<E> {
Malformed(MalformedChain),
ResetRace {
chain: QueueEpoch,
current: QueueEpoch,
},
Transport(E),
}Expand description
Failure to expose one consumed chain as validated byte ports.
Variants§
Malformed(MalformedChain)
The chain is malformed and should be completed with used length zero when recoverable.
ResetRace
Reset invalidated this chain before byte access.
Transport(E)
Concrete transport or memory-access failure.
Trait Implementations§
Source§impl<E: Clone> Clone for ChainError<E>
impl<E: Clone> Clone for ChainError<E>
Source§fn clone(&self) -> ChainError<E>
fn clone(&self) -> ChainError<E>
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<E: Copy> Copy for ChainError<E>
Source§impl<E: Debug> Debug for ChainError<E>
impl<E: Debug> Debug for ChainError<E>
impl<E: Eq> Eq for ChainError<E>
Source§impl<E: PartialEq> PartialEq for ChainError<E>
impl<E: PartialEq> PartialEq for ChainError<E>
Source§fn eq(&self, other: &ChainError<E>) -> bool
fn eq(&self, other: &ChainError<E>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<E: PartialEq> StructuralPartialEq for ChainError<E>
Auto Trait Implementations§
impl<E> Freeze for ChainError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ChainError<E>where
E: RefUnwindSafe,
impl<E> Send for ChainError<E>where
E: Send,
impl<E> Sync for ChainError<E>where
E: Sync,
impl<E> Unpin for ChainError<E>where
E: Unpin,
impl<E> UnsafeUnpin for ChainError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for ChainError<E>where
E: UnwindSafe,
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