pub struct WithRoute<'a, T: ?Sized, Route> { /* private fields */ }Trait Implementations§
Source§impl<Route: Clone, Msg, E, T: ?Sized + RouteSink<Route, Msg, Error = E>> Sink<Msg> for WithRoute<'_, T, Route>
impl<Route: Clone, Msg, E, T: ?Sized + RouteSink<Route, Msg, Error = E>> Sink<Msg> for WithRoute<'_, T, Route>
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink to receive a value. Read moreSource§fn start_send(self: Pin<&mut Self>, msg: Msg) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, msg: Msg) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready which returned Poll::Ready(Ok(())). Read moreimpl<T: ?Sized, Route> Unpin for WithRoute<'_, T, Route>
Auto Trait Implementations§
impl<'a, T, Route> Freeze for WithRoute<'a, T, Route>
impl<'a, T, Route> RefUnwindSafe for WithRoute<'a, T, Route>
impl<'a, T, Route> Send for WithRoute<'a, T, Route>
impl<'a, T, Route> Sync for WithRoute<'a, T, Route>
impl<'a, T, Route> !UnwindSafe for WithRoute<'a, T, Route>
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<Route, Msg, E, T> RouteSink<Route, Msg> for T
impl<Route, Msg, E, T> RouteSink<Route, Msg> for T
Source§fn poll_ready(
self: Pin<&mut T>,
_: &Route,
cx: &mut Context<'_>,
) -> Poll<Result<(), <T as RouteSink<Route, Msg>>::Error>>
fn poll_ready( self: Pin<&mut T>, _: &Route, cx: &mut Context<'_>, ) -> Poll<Result<(), <T as RouteSink<Route, Msg>>::Error>>
Source§fn poll_ready_any(
self: Pin<&mut T>,
cx: &mut Context<'_>,
) -> Poll<Result<(), <T as RouteSink<Route, Msg>>::Error>>
fn poll_ready_any( self: Pin<&mut T>, cx: &mut Context<'_>, ) -> Poll<Result<(), <T as RouteSink<Route, Msg>>::Error>>
Source§fn start_send(
self: Pin<&mut T>,
route: Route,
msg: Msg,
) -> Result<(), <T as RouteSink<Route, Msg>>::Error>
fn start_send( self: Pin<&mut T>, route: Route, msg: Msg, ) -> Result<(), <T as RouteSink<Route, Msg>>::Error>
Source§fn poll_flush(
self: Pin<&mut T>,
_: &Route,
cx: &mut Context<'_>,
) -> Poll<Result<(), <T as RouteSink<Route, Msg>>::Error>>
fn poll_flush( self: Pin<&mut T>, _: &Route, cx: &mut Context<'_>, ) -> Poll<Result<(), <T as RouteSink<Route, Msg>>::Error>>
Flush all the remaining items on a specified route. Read more
Source§fn poll_flush_all(
self: Pin<&mut T>,
cx: &mut Context<'_>,
) -> Poll<Result<(), <T as RouteSink<Route, Msg>>::Error>>
fn poll_flush_all( self: Pin<&mut T>, cx: &mut Context<'_>, ) -> Poll<Result<(), <T as RouteSink<Route, Msg>>::Error>>
Flush all the routes. Read more