pub struct Disconnect<S> { /* private fields */ }Expand description
Disconnect a connected socket and reuse it for another connection.
Implementations§
Source§impl<S> Disconnect<S>
impl<S> Disconnect<S>
Sourcepub fn new(fd: S) -> Disconnect<S>
pub fn new(fd: S) -> Disconnect<S>
Create Disconnect.
Trait Implementations§
Source§impl<S> OpCode for Disconnect<S>where
S: AsFd,
impl<S> OpCode for Disconnect<S>where
S: AsFd,
Source§type Control = ()
type Control = ()
Type that contains self-references and other needed info during the
operation
Source§unsafe fn operate(
&mut self,
_: &mut (),
optr: *mut OVERLAPPED,
) -> Poll<Result<usize, Error>>
unsafe fn operate( &mut self, _: &mut (), optr: *mut OVERLAPPED, ) -> Poll<Result<usize, Error>>
Perform Windows API call with given pointer to overlapped struct. Read more
Source§fn cancel(&mut self, _: &mut (), optr: *mut OVERLAPPED) -> Result<(), Error>
fn cancel(&mut self, _: &mut (), optr: *mut OVERLAPPED) -> Result<(), Error>
Cancel the async IO operation. Read more
Auto Trait Implementations§
impl<S> Freeze for Disconnect<S>where
S: Freeze,
impl<S> RefUnwindSafe for Disconnect<S>where
S: RefUnwindSafe,
impl<S> Send for Disconnect<S>where
S: Send,
impl<S> Sync for Disconnect<S>where
S: Sync,
impl<S> Unpin for Disconnect<S>where
S: Unpin,
impl<S> UnsafeUnpin for Disconnect<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Disconnect<S>where
S: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more