Struct jsonrpc_http_server::WeakRpc [−][src]
pub struct WeakRpc<M: Metadata = (), S: Middleware<M> = Noop> { /* fields omitted */ }
Expand description
A weak handle to the RPC server.
Since request handling futures are spawned directly on the executor, whenever the server is closed we want to make sure that existing tasks are not blocking the server and are dropped as soon as the server stops.
Implementations
Trait Implementations
Auto Trait Implementations
impl<M = (), S = Noop> !RefUnwindSafe for WeakRpc<M, S>
impl<M = (), S = Noop> !UnwindSafe for WeakRpc<M, S>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more