Struct ockam_transport_tcp::TcpListenerOptions
source · pub struct TcpListenerOptions { /* private fields */ }
Expand description
Trust Options for a TCP listener
Implementations§
source§impl TcpListenerOptions
impl TcpListenerOptions
sourcepub fn new() -> Self
pub fn new() -> Self
Mark this Tcp Listener as a Spawner with given FlowControlId
.
NOTE: Spawned connections get fresh random FlowControlId
, however they are still marked
with Spawner’s FlowControlId
sourcepub fn spawner_flow_control_id(&self) -> FlowControlId
pub fn spawner_flow_control_id(&self) -> FlowControlId
Getter for freshly generated FlowControlId
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TcpListenerOptions
impl Send for TcpListenerOptions
impl Sync for TcpListenerOptions
impl Unpin for TcpListenerOptions
impl UnwindSafe for TcpListenerOptions
Blanket Implementations§
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