Struct gj::io::Error [] [src]

pub struct Error<S> {
    pub state: S,
    pub error: Error,
}

A ::std::io::Error that also carries along some state. Useful for tasks from which you want to return the state in both the error and the success cases, like Promise<S, Error<S>>.

Fields

state: S error: Error

Methods

impl<S> Error<S>
[src]

fn new(state: S, error: Error) -> Error<S>

Trait Implementations

impl<S> Into<Error> for Error<S>
[src]

fn into(self) -> Error

Performs the conversion.

impl<S> Into<Box<Error>> for Error<S>
[src]

fn into(self) -> Box<Error>

Performs the conversion.