pub struct FlushSender<Side: SideData> { /* private fields */ }Expand description
Notification that receiving data may have changed the state of the associated SendTraffic
The caller may wish to check whether there is any IO necessary on the send side. If it does not, and ignores this state, any pending new data to send will be included in the next attempt to send data.
Implementations§
Source§impl<Side: SideData> FlushSender<Side>
impl<Side: SideData> FlushSender<Side>
Sourcepub fn into_next(self) -> ReceiveTrafficState<'static, Side>
pub fn into_next(self) -> ReceiveTrafficState<'static, Side>
Obtain the next receive-side state.
Auto Trait Implementations§
impl<Side> !RefUnwindSafe for FlushSender<Side>
impl<Side> !UnwindSafe for FlushSender<Side>
impl<Side> Freeze for FlushSender<Side>where
ReceiveTraffic<Side>: Freeze,
impl<Side> Send for FlushSender<Side>where
ReceiveTraffic<Side>: Send,
impl<Side> Sync for FlushSender<Side>where
ReceiveTraffic<Side>: Sync,
impl<Side> Unpin for FlushSender<Side>where
ReceiveTraffic<Side>: Unpin,
impl<Side> UnsafeUnpin for FlushSender<Side>where
ReceiveTraffic<Side>: UnsafeUnpin,
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