pub struct Connect<Stream> { /* private fields */ }
Expand description
Future returned by the TcpStream::connect()
method.
If you are implementing TcpStream
manually, you can construct a new instance of Connect
using its implementation of From<Pin<Box<dyn Future<Output = Result<Stream>> + Send>>>
.
Trait Implementations§
Source§impl<Stream> From<Pin<Box<dyn Future<Output = Result<Stream, Error>> + Send>>> for Connect<Stream>where
Stream: TcpStream,
impl<Stream> From<Pin<Box<dyn Future<Output = Result<Stream, Error>> + Send>>> for Connect<Stream>where
Stream: TcpStream,
Auto Trait Implementations§
impl<Stream> Freeze for Connect<Stream>
impl<Stream> !RefUnwindSafe for Connect<Stream>
impl<Stream> Send for Connect<Stream>
impl<Stream> !Sync for Connect<Stream>
impl<Stream> Unpin for Connect<Stream>
impl<Stream> !UnwindSafe for Connect<Stream>
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> FutureExt for F
impl<F> FutureExt for F
Source§fn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
Catches panics while polling the future. 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