pub struct WeakRpc<M: Metadata = (), S: Middleware<M> = Noop> { /* private fields */ }
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> Freeze for WeakRpc<M, S>
impl<M = (), S = Noop> !RefUnwindSafe for WeakRpc<M, S>
impl<M, S> Send for WeakRpc<M, S>
impl<M, S> Sync for WeakRpc<M, S>
impl<M, S> Unpin for WeakRpc<M, S>
impl<M = (), S = Noop> !UnwindSafe for WeakRpc<M, S>
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