Struct salvo_core::conn::tcp::TcpAcceptor
source · pub struct TcpAcceptor { /* private fields */ }
Expand description
TcpAcceptor
is used to accept a TCP connection.
Implementations§
source§impl TcpAcceptor
impl TcpAcceptor
sourcepub fn local_addr(&self) -> IoResult<SocketAddr>
pub fn local_addr(&self) -> IoResult<SocketAddr>
Returns the local address that this listener is bound to.
This can be useful, for example, when binding to port 0 to figure out which port was actually bound.
Trait Implementations§
source§impl Acceptor for TcpAcceptor
impl Acceptor for TcpAcceptor
source§impl TryFrom<TcpListener> for TcpAcceptor
impl TryFrom<TcpListener> for TcpAcceptor
Auto Trait Implementations§
impl !Freeze for TcpAcceptor
impl RefUnwindSafe for TcpAcceptor
impl Send for TcpAcceptor
impl Sync for TcpAcceptor
impl Unpin for TcpAcceptor
impl UnwindSafe for TcpAcceptor
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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