Struct ockam::TcpOutletOptions
source · pub struct TcpOutletOptions { /* private fields */ }
Expand description
Trust Options for an Outlet
Implementations§
source§impl TcpOutletOptions
impl TcpOutletOptions
sourcepub fn new() -> TcpOutletOptions
pub fn new() -> TcpOutletOptions
Default constructor without Incoming Access Control
sourcepub fn with_incoming_access_control_impl(
self,
access_control: impl IncomingAccessControl
) -> TcpOutletOptions
pub fn with_incoming_access_control_impl( self, access_control: impl IncomingAccessControl ) -> TcpOutletOptions
Set Incoming Access Control
sourcepub fn with_incoming_access_control(
self,
access_control: Arc<dyn IncomingAccessControl>
) -> TcpOutletOptions
pub fn with_incoming_access_control( self, access_control: Arc<dyn IncomingAccessControl> ) -> TcpOutletOptions
Set Incoming Access Control
sourcepub fn as_consumer(self, id: &FlowControlId) -> TcpOutletOptions
pub fn as_consumer(self, id: &FlowControlId) -> TcpOutletOptions
Mark that this Outlet listener is a Consumer for to the given FlowControlId
Also, in this case spawned Outlets will be marked as Consumers with FlowControlId
of the message that was used to create the Outlet
Trait Implementations§
source§impl Debug for TcpOutletOptions
impl Debug for TcpOutletOptions
source§impl Default for TcpOutletOptions
impl Default for TcpOutletOptions
source§fn default() -> TcpOutletOptions
fn default() -> TcpOutletOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for TcpOutletOptions
impl Send for TcpOutletOptions
impl Sync for TcpOutletOptions
impl Unpin for TcpOutletOptions
impl !UnwindSafe for TcpOutletOptions
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