pub struct Bind<Listener> { /* private fields */ }
Expand description
Future returned by the TcpListener::bind()
method.
If you are implementing TcpListener
manually, you can construct a new instance of Bind
using its implementation of From<Pin<Box<dyn Future<Output = Result<Listener>> + Send>>>
.
Trait Implementations§
Source§impl<Listener> From<Pin<Box<dyn Future<Output = Result<Listener, Error>> + Send>>> for Bind<Listener>where
Listener: TcpListener,
impl<Listener> From<Pin<Box<dyn Future<Output = Result<Listener, Error>> + Send>>> for Bind<Listener>where
Listener: TcpListener,
Source§impl<Listener: TcpListener> Future for Bind<Listener>
impl<Listener: TcpListener> Future for Bind<Listener>
Auto Trait Implementations§
impl<Listener> Freeze for Bind<Listener>
impl<Listener> !RefUnwindSafe for Bind<Listener>
impl<Listener> Send for Bind<Listener>
impl<Listener> !Sync for Bind<Listener>
impl<Listener> Unpin for Bind<Listener>
impl<Listener> !UnwindSafe for Bind<Listener>
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