pub enum AdmitError {
NotMintableInV0 {
op: Op,
check: Check,
},
DepthMismatch {
op: Op,
declared: u32,
implied: u32,
},
UnaddressedSpan {
start: u64,
end: u64,
},
}Expand description
Why a decoded unit was refused admission.
Distinct from SealError on purpose: sealing is this process minting,
admission is foreign bytes arriving. They fail for overlapping reasons and
a reader of a log needs to know which side produced the refusal.
Variants§
NotMintableInV0
The decoded operation is not mintable in v0.
DepthMismatch
The declared depth is not the depth the operation implies.
Fields
UnaddressedSpan
A span covering no bytes addresses nothing.
Trait Implementations§
Source§impl Clone for AdmitError
impl Clone for AdmitError
impl Copy for AdmitError
Source§impl Debug for AdmitError
impl Debug for AdmitError
Source§impl Display for AdmitError
impl Display for AdmitError
impl Eq for AdmitError
Source§impl Error for AdmitError
impl Error for AdmitError
1.30.0 · 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()
Source§impl PartialEq for AdmitError
impl PartialEq for AdmitError
impl StructuralPartialEq for AdmitError
Auto Trait Implementations§
impl Freeze for AdmitError
impl RefUnwindSafe for AdmitError
impl Send for AdmitError
impl Sync for AdmitError
impl Unpin for AdmitError
impl UnsafeUnpin for AdmitError
impl UnwindSafe for AdmitError
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