Type Alias CallResult

Source
pub type CallResult<'root> = Result<CallReply<'root>, ErrorReply<'root>>;

Aliased Type§

enum CallResult<'root> {
    Ok(CallReply<'root>),
    Err(ErrorReply<'root>),
}

Variants§

§1.0.0

Ok(CallReply<'root>)

Contains the success value

§1.0.0

Err(ErrorReply<'root>)

Contains the error value

Trait Implementations§

Source§

impl<'ctx> From<PromiseCallReply<'static, 'ctx>> for CallResult<'static>

Source§

fn from(value: PromiseCallReply<'static, 'ctx>) -> Self

Converts to this type from the input type.