pub struct ServerDispatcher<T: Transport> { /* private fields */ }
Expand description
A dispatcher for a server endpoint.
Implementations§
Source§impl<T: Transport> ServerDispatcher<T>
impl<T: Transport> ServerDispatcher<T>
Sourcepub async fn run<H>(
&mut self,
handler: H,
) -> Result<(), DispatcherError<T::Error>>where
H: ServerHandler<T>,
pub async fn run<H>(
&mut self,
handler: H,
) -> Result<(), DispatcherError<T::Error>>where
H: ServerHandler<T>,
Runs the dispatcher with the provided handler.
Auto Trait Implementations§
impl<T> Freeze for ServerDispatcher<T>
impl<T> RefUnwindSafe for ServerDispatcher<T>
impl<T> Send for ServerDispatcher<T>
impl<T> Sync for ServerDispatcher<T>
impl<T> Unpin for ServerDispatcher<T>
impl<T> UnwindSafe for ServerDispatcher<T>
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