pub struct OnDisconnect { /* private fields */ }
Expand description
OnDisconnect future resolves when socket get 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<()>
Check if connection 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 Freeze for OnDisconnect
impl !RefUnwindSafe for OnDisconnect
impl !Send for OnDisconnect
impl !Sync for OnDisconnect
impl Unpin for OnDisconnect
impl !UnwindSafe 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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