Struct awak::net::tcp::TcpListener
source · pub struct TcpListener { /* private fields */ }
Implementations§
source§impl TcpListener
impl TcpListener
pub async fn bind<A: ToSocketAddrs>(addr: A) -> Result<TcpListener>
pub fn from_std(listener: TcpListener) -> Result<TcpListener>
pub async fn accept(&self) -> Result<(TcpStream, SocketAddr)>
pub fn incoming(&self) -> Incoming<'_>
pub fn local_addr(&self) -> Result<SocketAddr>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TcpListener
impl RefUnwindSafe for TcpListener
impl Send for TcpListener
impl Sync for TcpListener
impl Unpin for TcpListener
impl UnwindSafe for TcpListener
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