Struct amplify::IoError [−][src]
pub struct IoError(_);
Expand description
Copyable & cloneable I/O error type represented by the error kind function.
Available only when both std
and derive
features are present.
Example
use amplify::{IoError, Error, Display, From};
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, From, Debug, Display, Error)]
enum Error {
#[from(::std::io::Error)]
#[display(inner)]
Io(IoError),
}
Trait Implementations
Mutably borrows from an owned value. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Instantiates wrapper type with the inner data
Returns reference to the inner representation for the wrapper type
Returns a mutable reference to the inner representation for the wrapper type Read more
Unwraps the wrapper returning the inner type
Auto Trait Implementations
impl RefUnwindSafe for IoError
impl UnwindSafe for IoError
Blanket Implementations
Mutably borrows from an owned value. Read more