pub struct TcpListener { /* private fields */ }Implementations§
Source§impl TcpListener
impl TcpListener
pub fn activate( &mut self, registry: &Registry, tcp_listener: Option<MioTcpListener>, ) -> Result<Token, ProxyError>
Sourcepub fn update_config(
&mut self,
patch: &UpdateTcpListenerConfig,
) -> Result<(), ListenerError>
pub fn update_config( &mut self, patch: &UpdateTcpListenerConfig, ) -> Result<(), ListenerError>
Apply a partial-update patch to this TCP listener’s live configuration.
Fields absent in the patch (i.e. None) are preserved unchanged.
Trait Implementations§
Source§impl ListenerHandler for TcpListener
impl ListenerHandler for TcpListener
fn get_addr(&self) -> &SocketAddr
fn protocol(&self) -> Protocol
fn public_address(&self) -> SocketAddr
Auto Trait Implementations§
impl !Freeze for TcpListener
impl RefUnwindSafe for TcpListener
impl Send for TcpListener
impl Sync for TcpListener
impl Unpin for TcpListener
impl UnsafeUnpin for TcpListener
impl UnwindSafe for TcpListener
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