[][src]Struct amplify::IoError

pub struct IoError(_);

Copyable & cloneable I/O error type represented by the error kind function

Example

#[macro_use]
extern crate amplify_derive;
use amplify::IoError;

#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, From, Debug, Display, Error)]
enum Error {
    #[from(::std::io::Error)]
    #[display(inner)]
    Io(IoError),
}

Trait Implementations

impl AsMut<<IoError as Wrapper>::Inner> for IoError[src]

impl AsRef<<IoError as Wrapper>::Inner> for IoError[src]

impl Borrow<<IoError as Wrapper>::Inner> for IoError[src]

impl BorrowMut<<IoError as Wrapper>::Inner> for IoError[src]

impl Clone for IoError[src]

impl Copy for IoError[src]

impl Debug for IoError[src]

impl Deref for IoError[src]

type Target = Self::Inner

The resulting type after dereferencing.

impl DerefMut for IoError[src]

impl Display for IoError[src]

impl Eq for IoError[src]

impl Error for IoError[src]

impl From<Error> for IoError[src]

impl From<ErrorKind> for IoError[src]

impl Hash for IoError[src]

impl Ord for IoError[src]

impl PartialEq<IoError> for IoError[src]

impl PartialOrd<IoError> for IoError[src]

impl StructuralEq for IoError[src]

impl StructuralPartialEq for IoError[src]

impl Wrapper for IoError[src]

type Inner = ErrorKind

Inner type wrapped by the current newtype

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.