pub struct RouterSink<B, St = ()> { /* private fields */ }Expand description
The runtime collector a router mounts into: type-erased starters plus handler metadata.
St is the app’s shared state type, threaded so a handler is only mounted on a sink whose state
type it matches.
Created and drained inside the application; a RouterDef pushes
into it during include_router. You do not
construct one directly.
Trait Implementations§
Auto Trait Implementations§
impl<B, St = ()> !RefUnwindSafe for RouterSink<B, St>
impl<B, St = ()> !Sync for RouterSink<B, St>
impl<B, St = ()> !UnwindSafe for RouterSink<B, St>
impl<B, St> Freeze for RouterSink<B, St>
impl<B, St> Send for RouterSink<B, St>
impl<B, St> Unpin for RouterSink<B, St>
impl<B, St> UnsafeUnpin for RouterSink<B, St>
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