pub struct FunctionHandler<F>{ /* private fields */ }Expand description
Simple function-based RPC handler
Implementations§
Source§impl<F> FunctionHandler<F>
impl<F> FunctionHandler<F>
Trait Implementations§
Source§impl<F> RpcHandler for FunctionHandler<F>
impl<F> RpcHandler for FunctionHandler<F>
fn handle<'life0, 'async_trait>(
&'life0 self,
request: RpcRequest,
) -> Pin<Box<dyn Future<Output = RpcResponse> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<F> Freeze for FunctionHandler<F>where
F: Freeze,
impl<F> RefUnwindSafe for FunctionHandler<F>where
F: RefUnwindSafe,
impl<F> Send for FunctionHandler<F>
impl<F> Sync for FunctionHandler<F>
impl<F> Unpin for FunctionHandler<F>where
F: Unpin,
impl<F> UnsafeUnpin for FunctionHandler<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FunctionHandler<F>where
F: UnwindSafe,
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