Enum ckb_error::ErrorKind [−][src]
A list specifying categories of ckb error.
This list is intended to grow over time and it is not recommended to exhaustively match against it.
It is used with Error
.
Variants
It indicates that the underlying error is OutPointError
.
It indicates that the underlying error is TransactionError
.
It indicates that the underlying error is Reject
.
It indicates that the underlying error is TransactionScriptError
.
It indicates that the underlying error is HeaderError
.
It indicates that the underlying error is BlockError
It indicates that the underlying error is InternalError
It indicates that the underlying error is DaoError
It indicates that the underlying error is SpecError
Implementations
impl ErrorKind
[src]
pub fn because<E>(self, reason: E) -> Error where
E: Error + Send + Sync + 'static,
[src]
E: Error + Send + Sync + 'static,
Creates Error
base on ErrorKind
with an error as the reason.
pub fn other<T>(self, reason: T) -> Error where
T: Display,
[src]
T: Display,
Creates Error
base on ErrorKind
with a simple string as the reason.
Trait Implementations
impl Clone for ErrorKind
[src]
impl Copy for ErrorKind
[src]
impl Debug for ErrorKind
[src]
impl Display for ErrorKind
[src]
impl Eq for ErrorKind
[src]
impl From<ErrorKind> for Error
[src]
impl PartialEq<ErrorKind> for ErrorKind
[src]
fn eq(&self, other: &ErrorKind) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ErrorKind
[src]
impl StructuralPartialEq for ErrorKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,