Trait trackable::error::ErrorKind
[−]
[src]
pub trait ErrorKind: Debug { fn description(&self) -> &str { ... } fn display(&self, f: &mut Formatter) -> Result { ... } fn is_tracking_needed(&self) -> bool { ... } fn is_assigning_tracking_number_needed(&self) -> bool { ... } }
This trait represents a error kind which TrackableError
can have.
Provided Methods
fn description(&self) -> &str
A short description of the error kind.
This is used for the description of the error that contains it.
The default implementation always returns "An error"
.
fn display(&self, f: &mut Formatter) -> Result
Displays this kind.
The default implementation uses the debugging form of this.
fn is_tracking_needed(&self) -> bool
Returns whether the error of this kind is needed to be tracked.
The default implementation always returns true
.
fn is_assigning_tracking_number_needed(&self) -> bool
Returns whether the error of this kind is needed to be assigned a tracking number automatically.
The default implementation always returns false
.
Implementations on Foreign Types
impl ErrorKind for String
[src]
fn description(&self) -> &str
[src]
fn display(&self, f: &mut Formatter) -> Result
[src]
fn is_tracking_needed(&self) -> bool
[src]
fn is_assigning_tracking_number_needed(&self) -> bool
[src]
Implementors
impl ErrorKind for Failed