pub struct ConnectFuture { /* private fields */ }Expand description
Future returned by TcpStream::connect.
Phase 1: creates the socket and calls connect() (returns EINPROGRESS).
Phase 2: stores waker in reactor registry; on WRITABLE event, checks SO_ERROR.
Trait Implementations§
Source§impl Drop for ConnectFuture
impl Drop for ConnectFuture
Source§impl Future for ConnectFuture
impl Future for ConnectFuture
Auto Trait Implementations§
impl Freeze for ConnectFuture
impl RefUnwindSafe for ConnectFuture
impl Send for ConnectFuture
impl Sync for ConnectFuture
impl Unpin for ConnectFuture
impl UnsafeUnpin for ConnectFuture
impl UnwindSafe for ConnectFuture
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<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