Struct ockam::TcpConnectionOptions
source · pub struct TcpConnectionOptions { /* private fields */ }
Expand description
Trust Options for a TCP connection
Implementations§
source§impl TcpConnectionOptions
impl TcpConnectionOptions
sourcepub fn new() -> TcpConnectionOptions
pub fn new() -> TcpConnectionOptions
Mark this Tcp Receiver as a Producer with a random FlowControlId
sourcepub fn as_consumer(self, id: &FlowControlId) -> TcpConnectionOptions
pub fn as_consumer(self, id: &FlowControlId) -> TcpConnectionOptions
Mark that this Connection is a Consumer for to the given FlowControlId
sourcepub fn flow_control_id(&self) -> FlowControlId
pub fn flow_control_id(&self) -> FlowControlId
Getter for freshly generated FlowControlId
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TcpConnectionOptions
impl Send for TcpConnectionOptions
impl Sync for TcpConnectionOptions
impl Unpin for TcpConnectionOptions
impl UnwindSafe for TcpConnectionOptions
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