Struct makiko::ClientFuture
source · 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 __ClientFuture<'pin, IO>: Unpin,
Auto Trait Implementations§
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,
§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