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
sourceimpl 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
sourceimpl Clone for OutPointError
impl Clone for OutPointError
sourcefn clone(&self) -> OutPointError
fn clone(&self) -> OutPointError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OutPointError
impl Debug for OutPointError
sourceimpl Display for OutPointError
impl Display for OutPointError
sourceimpl Error for OutPointError
impl Error for OutPointError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<OutPointError> for Error
impl From<OutPointError> for Error
sourcefn from(error: OutPointError) -> Self
fn from(error: OutPointError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<OutPointError> for OutPointError
impl PartialEq<OutPointError> for OutPointError
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &OutPointError) -> bool
fn ne(&self, other: &OutPointError) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more