pub struct RpcDispatcher { /* private fields */ }Expand description
Stateful RPC dispatcher used by stdio and HTTP transports.
Implementations§
Source§impl RpcDispatcher
impl RpcDispatcher
Sourcepub fn dispatch(
&mut self,
req: RpcRequest,
) -> Result<Value, (Option<Value>, RpcDispatchError)>
pub fn dispatch( &mut self, req: RpcRequest, ) -> Result<Value, (Option<Value>, RpcDispatchError)>
Process one RPC request against this dispatcher’s session state.
§Errors
Returns a dispatch error when the method is unknown or a method-specific validation, rendering, or session lookup fails.
Trait Implementations§
Source§impl Debug for RpcDispatcher
impl Debug for RpcDispatcher
Auto Trait Implementations§
impl !Freeze for RpcDispatcher
impl RefUnwindSafe for RpcDispatcher
impl Send for RpcDispatcher
impl Sync for RpcDispatcher
impl Unpin for RpcDispatcher
impl UnsafeUnpin for RpcDispatcher
impl UnwindSafe for RpcDispatcher
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