pub enum PacketAdmitError {
NotAChain {
parents: usize,
},
}Expand description
Why a decoded packet was refused admission.
Named apart from crate::AdmitError rather than folded into it: a reader
of a log needs to know whether the thing that failed the v0 contract was a
unit or a packet, and a shared enum answers that only by which variant fired.
Variants§
NotAChain
The node has more than one parent. v0 mints a chain, not a DAG.
Trait Implementations§
Source§impl Clone for PacketAdmitError
impl Clone for PacketAdmitError
impl Copy for PacketAdmitError
Source§impl Debug for PacketAdmitError
impl Debug for PacketAdmitError
Source§impl Display for PacketAdmitError
impl Display for PacketAdmitError
impl Eq for PacketAdmitError
Source§impl Error for PacketAdmitError
impl Error for PacketAdmitError
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 PacketAdmitError
impl PartialEq for PacketAdmitError
impl StructuralPartialEq for PacketAdmitError
Auto Trait Implementations§
impl Freeze for PacketAdmitError
impl RefUnwindSafe for PacketAdmitError
impl Send for PacketAdmitError
impl Sync for PacketAdmitError
impl Unpin for PacketAdmitError
impl UnsafeUnpin for PacketAdmitError
impl UnwindSafe for PacketAdmitError
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