Struct bytecodec::Error [−][src]
pub struct Error(_);
This crate specific Error type.
Methods from Deref<Target = TrackableError<ErrorKind>>
ⓘImportant traits for &'a mut Rpub fn kind(&self) -> &K[src]
pub fn kind(&self) -> &KReturns the kind of this error.
pub fn concrete_cause<T>(&self) -> Option<&T> where
T: Error + 'static, [src]
pub fn concrete_cause<T>(&self) -> Option<&T> where
T: Error + 'static, Tries to return the cause of this error as a value of T type.
If neither this error has a cause nor it is an T value,
this method will return None.
Trait Implementations
impl Debug for Error[src]
impl Debug for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Error[src]
impl Clone for Errorfn clone(&self) -> Error[src]
fn clone(&self) -> ErrorReturns 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)Performs copy-assignment from source. Read more
impl Deref for Error
impl Deref for Errortype Target = TrackableError<ErrorKind>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
fn deref(&self) -> &Self::TargetDereferences the value.
impl Display for Error
impl Display for Errorimpl Error for Error
impl Error for Errorfn description(&self) -> &str
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
fn cause(&self) -> Option<&Error>The lower-level cause of this error, if any. Read more
impl Trackable for Error
impl Trackable for Errortype Event = Location
Event type which a history of an instance of this type can have.
fn history(&self) -> Option<&History<Self::Event>>
fn history(&self) -> Option<&History<Self::Event>>Returns the reference of the tracking history of this instance. Read more
fn history_mut(&mut self) -> Option<&mut History<Self::Event>>
fn history_mut(&mut self) -> Option<&mut History<Self::Event>>Returns the mutable reference of the tracking history of this instance. Read more
fn track<F>(&mut self, f: F) where
F: FnOnce() -> Self::Event, [src]
fn track<F>(&mut self, f: F) where
F: FnOnce() -> Self::Event, Add an event into the tail of the history of this instance. Read more
fn in_tracking(&self) -> bool[src]
fn in_tracking(&self) -> boolReturns true if it is being tracked, otherwise false.
impl From<TrackableError<ErrorKind>> for Error
impl From<TrackableError<ErrorKind>> for Errorfn from(f: TrackableError<ErrorKind>) -> Self
fn from(f: TrackableError<ErrorKind>) -> SelfPerforms the conversion.
impl From<Error> for TrackableError<ErrorKind>
impl From<Error> for TrackableError<ErrorKind>impl From<ErrorKind> for Error
impl From<ErrorKind> for Errorimpl From<Failure> for Error[src]
impl From<Failure> for Errorimpl From<Error> for Error[src]
impl From<Error> for Error