Struct checkpoint::Error
[−]
[src]
pub struct Error { /* fields omitted */ }
The error type for Checkpoint operations.
Methods
impl Error
[src]
pub fn kind(&self) -> ErrorKind
[src]
Returns the ErrorKind of the error.
pub fn cp_already_exists(msg: String) -> Self
[src]
Convenience method to create an error with ErrorKind::CpAlreadyExists and the provided message.
pub fn cp_doesnt_exist(msg: String) -> Self
[src]
Convenience method to create an error with ErrorKind::CpDoesntExist and the provided message.
pub fn cp_in_use(msg: String) -> Self
[src]
Convenience method to create an error with ErrorKind::CpInUse and the provided message.
pub fn cp_key_doesnt_exist(msg: String) -> Self
[src]
Convenience method to create an error with ErrorKind::CpKeyDoesntExist and the provided message.
pub fn deserialize(msg: String) -> Self
[src]
Convenience method to create an error with ErrorKind::Deserialize and the provided message.
pub fn initialization(msg: String) -> Self
[src]
Convenience method to create an error with ErrorKind::Initialization and the provided message.
pub fn integrity(msg: String) -> Self
[src]
Convenience method to create an error with ErrorKind::Integrity and the provided message.
pub fn invalid_identifier(msg: String) -> Self
[src]
Convenience method to create an error with ErrorKind::InvalidIdentifier and the provided message.
pub fn io(msg: String) -> Self
[src]
Convenience method to create an error with ErrorKind::Io and the provided message.
pub fn other(msg: String) -> Self
[src]
Convenience method to create an error with ErrorKind::Other and the provided message.
pub fn serialize(msg: String) -> Self
[src]
Convenience method to create an error with ErrorKind::Serialize and the provided message.
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Fail for Error
[src]
fn cause(&self) -> Option<&Fail>
[src]
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
fn compat(self) -> Compat<Self>
[src]
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
fn causes(&self) -> Causes
[src]
Returns a iterator over the causes of this Fail
with itself as the first item and the root_cause
as the final item. Read more
fn root_cause(&self) -> &(Fail + 'static)
[src]
Returns the "root cause" of this Fail
- the last value in the cause chain which does not return an underlying cause
. Read more