[][src]Struct threader::net::tcp::TcpListener

pub struct TcpListener { /* fields omitted */ }

Methods

impl TcpListener[src]

pub fn bind(addr: &SocketAddr) -> Result<Self>[src]

pub fn from_std(listener: StdTcpListener) -> Result<Self>[src]

pub async fn accept_std<'_>(&'_ self) -> Result<(StdTcpStream, SocketAddr)>[src]

pub async fn accept<'_>(&'_ self) -> Result<(TcpStream, SocketAddr)>[src]

pub fn local_addr(&self) -> Result<SocketAddr>[src]

pub fn set_ttl(&self, ttl: u32) -> Result<()>[src]

pub fn ttl(&self) -> Result<u32>[src]

pub fn set_only_v6(&self, only_v6: bool) -> Result<()>[src]

pub fn only_v6(&self) -> Result<bool>[src]

Trait Implementations

impl Debug for TcpListener[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]