Struct ntex_io::OnDisconnect
source · 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 Future for OnDisconnect
impl Future for OnDisconnect
Auto Trait Implementations§
impl !RefUnwindSafe for OnDisconnect
impl !Send for OnDisconnect
impl !Sync for OnDisconnect
impl Unpin for OnDisconnect
impl !UnwindSafe for OnDisconnect
Blanket Implementations§
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
§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