Type Alias IOResult

Source
pub type IOResult<T> = Result<Result<T, HostErrno>, ()>;
Expand description

The result type for host I/O operations. Return error if the operation in question is not implemented. Otherwise, the success type indicates whether the operation succeeded, with HostErrno values for failure.

Aliased Type§

enum IOResult<T> {
    Ok(Result<T, HostErrno>),
    Err(()),
}

Variants§

§1.0.0

Ok(Result<T, HostErrno>)

Contains the success value

§1.0.0

Err(())

Contains the error value