pub struct OnDisconnect { /* private fields */ }Expand description
The OnDisconnect future resolves when the I/O stream is disconnected.
Implementations§
Source§impl OnDisconnect
impl OnDisconnect
Sourcepub fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<()>
pub fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<()>
Checks if the I/O stream is disconnected.
Trait Implementations§
Source§impl Clone for OnDisconnect
impl Clone for OnDisconnect
Source§impl Debug for OnDisconnect
impl Debug for OnDisconnect
Source§impl Future for OnDisconnect
impl Future for OnDisconnect
Auto Trait Implementations§
impl !RefUnwindSafe for OnDisconnect
impl !Send for OnDisconnect
impl !Sync for OnDisconnect
impl !UnwindSafe for OnDisconnect
impl Freeze for OnDisconnect
impl Unpin for OnDisconnect
impl UnsafeUnpin for OnDisconnect
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Source§impl<F> OnDropFutureExt for Fwhere
F: Future,
impl<F> OnDropFutureExt for Fwhere
F: Future,
Source§fn on_drop<F>(self, on_drop: F) -> OnDropFuture<Self, F>where
F: FnOnce(),
fn on_drop<F>(self, on_drop: F) -> OnDropFuture<Self, F>where
F: FnOnce(),
Wraps this future so that
on_drop is called if the future is dropped
before it completes. The callback is cancelled if the future resolves
successfully.