[−][src]Enum ckb_error::InternalErrorKind
TODO(doc): @keroro520
Variants
An arithmetic overflow occurs during capacity calculation,
e.g. Capacity::safe_add
Persistent data had corrupted
Database exception
Block Assembler error
VM internal error
Unknown system error
The feature is disabled or is conflicted with the configuration
Other system error
Implementations
impl InternalErrorKind
[src]
pub fn because<E>(self, reason: E) -> InternalError where
E: Error + Send + Sync + 'static,
[src]
E: Error + Send + Sync + 'static,
Creates InternalError
base on InternalErrorKind
with an error as the reason.
pub fn other<T>(self, reason: T) -> InternalError where
T: Display,
[src]
T: Display,
Creates InternalError
base on InternalErrorKind
with a simple string as the reason.
Trait Implementations
impl Clone for InternalErrorKind
[src]
pub fn clone(&self) -> InternalErrorKind
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for InternalErrorKind
[src]
impl Debug for InternalErrorKind
[src]
impl Display for InternalErrorKind
[src]
impl Eq for InternalErrorKind
[src]
impl From<InternalErrorKind> for InternalError
[src]
pub fn from(kind: InternalErrorKind) -> Self
[src]
impl PartialEq<InternalErrorKind> for InternalErrorKind
[src]
pub fn eq(&self, other: &InternalErrorKind) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for InternalErrorKind
[src]
impl StructuralPartialEq for InternalErrorKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for InternalErrorKind
[src]
impl Send for InternalErrorKind
[src]
impl Sync for InternalErrorKind
[src]
impl Unpin for InternalErrorKind
[src]
impl UnwindSafe for InternalErrorKind
[src]
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>,