pub struct CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra = Empty> { /* private fields */ }
Implementations§
Source§impl<Context, RemoteContext, RemoteHandler, Extra> CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>
impl<Context, RemoteContext, RemoteHandler, Extra> CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>
Trait Implementations§
Source§impl<Context, RemoteContext, RemoteHandler, Extra> CliBindings<Context> for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>
impl<Context, RemoteContext, RemoteHandler, Extra> CliBindings<Context> for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>
Source§impl<Context, RemoteContext, RemoteHandler: Clone, Extra> Clone for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>
impl<Context, RemoteContext, RemoteHandler: Clone, Extra> Clone for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>
Source§impl<Context, RemoteHandler, Extra> Debug for CallRemoteHandler<Context, RemoteHandler, Extra>
impl<Context, RemoteHandler, Extra> Debug for CallRemoteHandler<Context, RemoteHandler, Extra>
Source§impl<Context, RemoteContext, RemoteHandler, Extra> HandlerFor<Context> for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>where
Context: CallRemote<RemoteContext, Extra>,
RemoteContext: Context,
RemoteHandler: HandlerFor<RemoteContext>,
RemoteHandler::Params: Serialize,
RemoteHandler::Ok: DeserializeOwned,
RemoteHandler::Err: From<RpcError>,
Extra: Serialize + Send + Sync + 'static,
impl<Context, RemoteContext, RemoteHandler, Extra> HandlerFor<Context> for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>where
Context: CallRemote<RemoteContext, Extra>,
RemoteContext: Context,
RemoteHandler: HandlerFor<RemoteContext>,
RemoteHandler::Params: Serialize,
RemoteHandler::Ok: DeserializeOwned,
RemoteHandler::Err: From<RpcError>,
Extra: Serialize + Send + Sync + 'static,
async fn handle_async( &self, handle_args: HandlerArgsFor<Context, Self>, ) -> Result<Self::Ok, Self::Err>
fn metadata( &self, method: VecDeque<&'static str>, ) -> OrdMap<&'static str, Value>
fn method_from_dots(&self, method: &str) -> Option<VecDeque<&'static str>>
fn handle_sync( &self, handle_args: HandlerArgsFor<Context, Self>, ) -> Result<Self::Ok, Self::Err>
fn handle_async_with_sync<'a>( &'a self, handle_args: HandlerArgsFor<Context, Self>, ) -> impl Future<Output = Result<Self::Ok, Self::Err>> + Send + 'a
fn handle_async_with_sync_blocking<'a>( &'a self, handle_args: HandlerArgsFor<Context, Self>, ) -> impl Future<Output = Result<Self::Ok, Self::Err>> + Send + 'a
Source§impl<Context, RemoteContext, RemoteHandler, Extra> HandlerTypes for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>where
RemoteHandler: HandlerTypes,
RemoteHandler::Params: Serialize,
RemoteHandler::Ok: DeserializeOwned,
RemoteHandler::Err: From<RpcError>,
Extra: Send + Sync + 'static,
impl<Context, RemoteContext, RemoteHandler, Extra> HandlerTypes for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>where
RemoteHandler: HandlerTypes,
RemoteHandler::Params: Serialize,
RemoteHandler::Ok: DeserializeOwned,
RemoteHandler::Err: From<RpcError>,
Extra: Send + Sync + 'static,
type Params = Flat<<RemoteHandler as HandlerTypes>::Params, Extra>
type InheritedParams = <RemoteHandler as HandlerTypes>::InheritedParams
type Ok = <RemoteHandler as HandlerTypes>::Ok
type Err = <RemoteHandler as HandlerTypes>::Err
Source§impl<Context, RemoteContext, RemoteHandler, Extra> PrintCliResult<Context> for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>where
Context: CallRemote<RemoteContext>,
RemoteHandler: PrintCliResult<Context>,
RemoteHandler::Params: Serialize,
RemoteHandler::Ok: DeserializeOwned,
RemoteHandler::Err: From<RpcError>,
Extra: Send + Sync + 'static,
impl<Context, RemoteContext, RemoteHandler, Extra> PrintCliResult<Context> for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>where
Context: CallRemote<RemoteContext>,
RemoteHandler: PrintCliResult<Context>,
RemoteHandler::Params: Serialize,
RemoteHandler::Ok: DeserializeOwned,
RemoteHandler::Err: From<RpcError>,
Extra: Send + Sync + 'static,
Auto Trait Implementations§
impl<Context, RemoteContext, RemoteHandler, Extra> Freeze for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>where
RemoteHandler: Freeze,
impl<Context, RemoteContext, RemoteHandler, Extra> RefUnwindSafe for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>where
RemoteHandler: RefUnwindSafe,
Context: RefUnwindSafe,
RemoteContext: RefUnwindSafe,
Extra: RefUnwindSafe,
impl<Context, RemoteContext, RemoteHandler, Extra> Send for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>where
RemoteHandler: Send,
impl<Context, RemoteContext, RemoteHandler, Extra> Sync for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>where
RemoteHandler: Sync,
impl<Context, RemoteContext, RemoteHandler, Extra> Unpin for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>
impl<Context, RemoteContext, RemoteHandler, Extra> UnwindSafe for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>
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