Struct arc_io_error::IoError [] [src]

pub struct IoError(_);

A version of std::io::Error implemented on top of Arc instead of Box, making it cloneable.

The API of this type has been designed to match io::Error, with two exceptions:

See the standard library documentation for more detailed API-level descriptions than are given here.

IoError implements From for io::Error and vice-versa, so the two types can easily be converted between each other. A type containing io::Error can be made Clone-compatible by instead storing IoError internally and converting from/to io::Error on API boundaries.

Clones derived from the same original IoError instance will share a single heap-allocated error instance (if one is present) using Arc. io::Error instances produced by converting those clones back with the From implementation will also share the same single error instance.

Methods

impl IoError
[src]

See io::Error::new, with Arc substituted for Box.

See io::Error::into_inner, with Arc substituted for Box.

Trait Implementations

impl Clone for IoError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<Error> for IoError
[src]

Performs the conversion.

impl From<IoErrorKind> for IoError
[src]

Performs the conversion.

impl Debug for IoError
[src]

Formats the value using the given formatter.

impl Display for IoError
[src]

Formats the value using the given formatter. Read more

impl Error for IoError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more