Struct ockam_transport_tcp::TcpListener
source · pub struct TcpListener { /* private fields */ }
Expand description
Result of [TcpTransport::listen
] call.
Implementations§
source§impl TcpListener
impl TcpListener
sourcepub fn new(
processor_address: Address,
socket_address: SocketAddr,
flow_control_id: FlowControlId
) -> Self
pub fn new( processor_address: Address, socket_address: SocketAddr, flow_control_id: FlowControlId ) -> Self
Constructor
sourcepub fn processor_address(&self) -> &Address
pub fn processor_address(&self) -> &Address
Corresponding Worker Address
that can be used to stop the Listener
sourcepub fn socket_address(&self) -> &SocketAddr
pub fn socket_address(&self) -> &SocketAddr
Corresponding SocketAddr
sourcepub fn socket_string(&self) -> String
pub fn socket_string(&self) -> String
Corresponding SocketAddr
in String format
sourcepub fn flow_control_id(&self) -> &FlowControlId
pub fn flow_control_id(&self) -> &FlowControlId
Generated fresh random FlowControlId
Trait Implementations§
source§impl Clone for TcpListener
impl Clone for TcpListener
source§fn clone(&self) -> TcpListener
fn clone(&self) -> TcpListener
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TcpListener
impl Debug for TcpListener
Auto Trait Implementations§
impl RefUnwindSafe for TcpListener
impl Send for TcpListener
impl Sync for TcpListener
impl Unpin for TcpListener
impl UnwindSafe for TcpListener
Blanket Implementations§
source§impl<D> AsyncTryClone for D
impl<D> AsyncTryClone for D
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