pub struct ClientFuture<IO> { /* private fields */ }
Expand description
Future that drives the connection state machine.
This future performs the reads and writes on IO
and stores the state of the connection. You
must poll this future, usually by spawning a task for it. The future completes when the
connection is closed or when an error happens.
Implementations§
Source§impl<IO> ClientFuture<IO>
impl<IO> ClientFuture<IO>
Sourcepub fn into_stream(self) -> IO
pub fn into_stream(self) -> IO
Deconstructs the future and gives the IO
back to you.
Trait Implementations§
Source§impl<IO> Future for ClientFuture<IO>where
IO: AsyncRead + AsyncWrite,
impl<IO> Future for ClientFuture<IO>where
IO: AsyncRead + AsyncWrite,
impl<'pin, IO> Unpin for ClientFuture<IO>where
PinnedFieldsOf<__ClientFuture<'pin, IO>>: Unpin,
Auto Trait Implementations§
impl<IO> Freeze for ClientFuture<IO>where
IO: Freeze,
impl<IO> !RefUnwindSafe for ClientFuture<IO>
impl<IO> Send for ClientFuture<IO>where
IO: Send,
impl<IO> Sync for ClientFuture<IO>where
IO: Sync,
impl<IO> !UnwindSafe for ClientFuture<IO>
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