Struct jsonrpc::MethodCompletable
[−]
[src]
pub struct MethodCompletable<RET: Serialize, RET_ERROR: Serialize> { /* fields omitted */ }
Helper type that wraps a ResponseCompletable,
and binds the possible completion to a result MethodResult<RET, RET_ERROR>
Methods
impl<RET: Serialize, RET_ERROR: Serialize> MethodCompletable<RET, RET_ERROR>
[src]
fn new(completable: ResponseCompletable) -> MethodCompletable<RET, RET_ERROR>
fn parse_params_and_complete_with<PARAMS, METHOD>(self,
params: RequestParams,
method_fn: METHOD) where PARAMS: Deserialize, RET: Serialize, RET_ERROR: Serialize, METHOD: FnOnce(PARAMS, Self)
params: RequestParams,
method_fn: METHOD) where PARAMS: Deserialize, RET: Serialize, RET_ERROR: Serialize, METHOD: FnOnce(PARAMS, Self)