pub type CallResult<'root> = Result<CallReply<'root>, ErrorReply<'root>>;
Aliased Type§
enum CallResult<'root> {
Ok(CallReply<'root>),
Err(ErrorReply<'root>),
}
Variants§
Ok(CallReply<'root>)
Contains the success value
Err(ErrorReply<'root>)
Contains the error value
Trait Implementations§
Source§impl<'ctx> From<PromiseCallReply<'static, 'ctx>> for CallResult<'static>
impl<'ctx> From<PromiseCallReply<'static, 'ctx>> for CallResult<'static>
Source§fn from(value: PromiseCallReply<'static, 'ctx>) -> Self
fn from(value: PromiseCallReply<'static, 'ctx>) -> Self
Converts to this type from the input type.