pub struct MethodCompletable<RET: Serialize, RET_ERROR: Serialize> { /* private fields */ }
Expand description
Helper type that wraps a ResponseCompletable,
and binds the possible completion to a result MethodResult<RET, RET_ERROR>
Implementations§
Source§impl<RET: Serialize, RET_ERROR: Serialize> MethodCompletable<RET, RET_ERROR>
impl<RET: Serialize, RET_ERROR: Serialize> MethodCompletable<RET, RET_ERROR>
pub fn new( completable: ResponseCompletable, ) -> MethodCompletable<RET, RET_ERROR>
pub fn parse_params_and_complete_with<PARAMS, METHOD>( self, params: RequestParams, method_fn: METHOD, )
pub fn complete(self, result: MethodResult<RET, RET_ERROR>)
Auto Trait Implementations§
impl<RET, RET_ERROR> Freeze for MethodCompletable<RET, RET_ERROR>
impl<RET, RET_ERROR> !RefUnwindSafe for MethodCompletable<RET, RET_ERROR>
impl<RET, RET_ERROR> Send for MethodCompletable<RET, RET_ERROR>
impl<RET, RET_ERROR> !Sync for MethodCompletable<RET, RET_ERROR>
impl<RET, RET_ERROR> Unpin for MethodCompletable<RET, RET_ERROR>
impl<RET, RET_ERROR> !UnwindSafe for MethodCompletable<RET, RET_ERROR>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more