Enum ckb_types::core::error::OutPointError
source · pub enum OutPointError {
Dead(OutPoint),
Unknown(OutPoint),
OutOfOrder(OutPoint),
InvalidDepGroup(OutPoint),
InvalidHeader(Byte32),
OverMaxDepExpansionLimit,
}
Expand description
Errors due to the fact that the out-point rules are not respected.
Variants§
Dead(OutPoint)
The target cell was already dead.
Unknown(OutPoint)
There are cells which is unknown to the canonical chain.
OutOfOrder(OutPoint)
There is an input out-point or dependency out-point which references a newer cell in the same block.
InvalidDepGroup(OutPoint)
There is a dependency out-point, which is DepGroup
, but its output-data is invalid format. The expected output-data format for DepGroup
is OutPointVec
.
InvalidHeader(Byte32)
There is a dependency header that is unknown to the canonical chain.
OverMaxDepExpansionLimit
Over max dep expansion limit.
Implementations§
source§impl OutPointError
impl OutPointError
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the error is an unknown out_point.
Trait Implementations§
source§impl Clone for OutPointError
impl Clone for OutPointError
source§fn clone(&self) -> OutPointError
fn clone(&self) -> OutPointError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OutPointError
impl Debug for OutPointError
source§impl Display for OutPointError
impl Display for OutPointError
source§impl Error for OutPointError
impl Error for OutPointError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<OutPointError> for Error
impl From<OutPointError> for Error
source§fn from(error: OutPointError) -> Self
fn from(error: OutPointError) -> Self
Converts to this type from the input type.
source§impl PartialEq for OutPointError
impl PartialEq for OutPointError
source§fn eq(&self, other: &OutPointError) -> bool
fn eq(&self, other: &OutPointError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OutPointError
impl StructuralEq for OutPointError
impl StructuralPartialEq for OutPointError
Auto Trait Implementations§
impl RefUnwindSafe for OutPointError
impl Send for OutPointError
impl Sync for OutPointError
impl Unpin for OutPointError
impl UnwindSafe for OutPointError
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