[−][src]Struct threader::net::tcp::TcpListener
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
Auto Trait Implementations
impl Send for TcpListener
impl Sync for TcpListener
impl Unpin for TcpListener
impl !UnwindSafe for TcpListener
impl !RefUnwindSafe for TcpListener
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,