Struct ckb_error::InternalError [−][src]
pub struct InternalError { /* fields omitted */ }
Expand description
Internal error.
Implementations
impl InternalError
[src]
impl InternalError
[src]pub fn kind(&self) -> InternalErrorKind
[src]
pub fn kind(&self) -> InternalErrorKind
[src]Returns the general category of this error.
pub fn downcast_ref<E>(&self) -> Option<&E> where
E: Display + Debug + Send + Sync + 'static,
[src]
pub fn downcast_ref<E>(&self) -> Option<&E> where
E: Display + Debug + Send + Sync + 'static,
[src]Downcast this error object by reference.
pub fn root_cause(&self) -> &(dyn Error + 'static)
[src]
pub fn root_cause(&self) -> &(dyn Error + 'static)
[src]The lowest level cause of this error — this error’s cause’s cause’s cause etc.
Trait Implementations
impl Clone for InternalError
[src]
impl Clone for InternalError
[src]fn clone(&self) -> InternalError
[src]
fn clone(&self) -> InternalError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for InternalError
[src]
impl Debug for InternalError
[src]impl Display for InternalError
[src]
impl Display for InternalError
[src]impl Error for InternalError
[src]
impl Error for InternalError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<Error> for InternalError
[src]
impl From<Error> for InternalError
[src]impl From<InternalError> for Error
[src]
impl From<InternalError> for Error
[src]fn from(error: InternalError) -> Self
[src]
fn from(error: InternalError) -> Self
[src]Performs the conversion.
impl From<InternalErrorKind> for InternalError
[src]
impl From<InternalErrorKind> for InternalError
[src]fn from(kind: InternalErrorKind) -> Self
[src]
fn from(kind: InternalErrorKind) -> Self
[src]Performs the conversion.
impl From<OtherError> for InternalError
[src]
impl From<OtherError> for InternalError
[src]fn from(error: OtherError) -> Self
[src]
fn from(error: OtherError) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for InternalError
impl Send for InternalError
impl Sync for InternalError
impl Unpin for InternalError
impl !UnwindSafe for InternalError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more