Type Alias openthread::ot::Result

source ·
pub type Result<T = (), E = Error> = Result<T, E>;
Expand description

Type returned by OpenThread calls.

Aliased Type§

enum Result<T = (), E = Error> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value

Trait Implementations§

source§

impl From<Error> for Result

source§

fn from(val: Error) -> Self

Converts to this type from the input type.
source§

impl IntoOtError for Result<(), Error>

source§

fn into_ot_error(self) -> otError

Converts this value into a otsys::otError.