pub struct Dispatcher<S, U>where
S: Service<DispatchItem<U>, Response = Option<<U as Encoder>::Item>>,
U: Encoder + Decoder + 'static,{ /* private fields */ }๐Deprecated
Expand description
Dispatcher - is a future that reads frames from bytes stream and pass then to the service.
Implementationsยง
Sourceยงimpl<S, U> Dispatcher<S, U>
impl<S, U> Dispatcher<S, U>
Sourcepub fn new<Io, F>(io: Io, codec: U, service: F) -> Dispatcher<S, U> โ
pub fn new<Io, F>(io: Io, codec: U, service: F) -> Dispatcher<S, U> โ
Construct new Dispatcher instance.
Trait Implementationsยง
Sourceยงimpl<S, U> Future for Dispatcher<S, U>
impl<S, U> Future for Dispatcher<S, U>
impl<'__pin, S, U> Unpin for Dispatcher<S, U>
Auto Trait Implementationsยง
impl<S, U> Freeze for Dispatcher<S, U>
impl<S, U> !RefUnwindSafe for Dispatcher<S, U>
impl<S, U> !Send for Dispatcher<S, U>
impl<S, U> !Sync for Dispatcher<S, U>
impl<S, U> !UnwindSafe for Dispatcher<S, U>
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
Sourceยงimpl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Sourceยงtype IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Sourceยงfn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more