pub struct ClientDispatcher<T: Transport> { /* private fields */ }
Expand description
A dispatcher for a client endpoint.
It must be actively polled to receive events and transaction responses.
Implementations§
Source§impl<T: Transport> ClientDispatcher<T>
impl<T: Transport> ClientDispatcher<T>
Sourcepub async fn run<H>(
&mut self,
handler: H,
) -> Result<(), DispatcherError<T::Error>>where
H: ClientHandler<T>,
pub async fn run<H>(
&mut self,
handler: H,
) -> Result<(), DispatcherError<T::Error>>where
H: ClientHandler<T>,
Runs the dispatcher with the provided handler.
Auto Trait Implementations§
impl<T> Freeze for ClientDispatcher<T>
impl<T> RefUnwindSafe for ClientDispatcher<T>
impl<T> Send for ClientDispatcher<T>
impl<T> Sync for ClientDispatcher<T>
impl<T> Unpin for ClientDispatcher<T>
impl<T> UnwindSafe for ClientDispatcher<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