pub type KitsuneP2pEventHandlerResult<T> = Result<MustBoxFuture<'static, Result<T, KitsuneP2pError>>, KitsuneP2pError>;
Expand description

Handler Result Type.

Aliased Type§

enum KitsuneP2pEventHandlerResult<T> {
    Ok(MustBoxFuture<'static, Result<T, KitsuneP2pError>>),
    Err(KitsuneP2pError),
}

Variants§

§1.0.0

Ok(MustBoxFuture<'static, Result<T, KitsuneP2pError>>)

Contains the success value

§1.0.0

Err(KitsuneP2pError)

Contains the error value