pub struct InterfaceHandler<T: RpcInterface> { /* private fields */ }Expand description
Helper to wrap an RpcInterface as an RpcHandler
Implementations§
Source§impl<T: RpcInterface> InterfaceHandler<T>
impl<T: RpcInterface> InterfaceHandler<T>
Trait Implementations§
Source§impl<T: RpcInterface + 'static> RpcHandler for InterfaceHandler<T>
impl<T: RpcInterface + 'static> RpcHandler for InterfaceHandler<T>
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<T> Freeze for InterfaceHandler<T>
impl<T> RefUnwindSafe for InterfaceHandler<T>where
T: RefUnwindSafe,
impl<T> Send for InterfaceHandler<T>
impl<T> Sync for InterfaceHandler<T>
impl<T> Unpin for InterfaceHandler<T>
impl<T> UnsafeUnpin for InterfaceHandler<T>
impl<T> UnwindSafe for InterfaceHandler<T>where
T: RefUnwindSafe,
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