Struct ockam::RelayServiceOptions
source · pub struct RelayServiceOptions { /* private fields */ }
Expand description
Trust Options for a Forwarding Service
Implementations§
source§impl RelayServiceOptions
impl RelayServiceOptions
sourcepub fn service_as_consumer(self, id: &FlowControlId) -> Self
pub fn service_as_consumer(self, id: &FlowControlId) -> Self
Mark that this Relay service is a Consumer for to the given FlowControlId
sourcepub fn relay_as_consumer(self, id: &FlowControlId) -> Self
pub fn relay_as_consumer(self, id: &FlowControlId) -> Self
Mark that spawned Relays are Consumers for to the given FlowControlId
sourcepub fn with_service_incoming_access_control_impl(
self,
access_control: impl IncomingAccessControl
) -> Self
pub fn with_service_incoming_access_control_impl( self, access_control: impl IncomingAccessControl ) -> Self
Set Service Incoming Access Control
sourcepub fn with_service_incoming_access_control(
self,
access_control: Arc<dyn IncomingAccessControl>
) -> Self
pub fn with_service_incoming_access_control( self, access_control: Arc<dyn IncomingAccessControl> ) -> Self
Set Service Incoming Access Control
sourcepub fn with_relays_incoming_access_control_impl(
self,
access_control: impl IncomingAccessControl
) -> Self
pub fn with_relays_incoming_access_control_impl( self, access_control: impl IncomingAccessControl ) -> Self
Set spawned relays Incoming Access Control
sourcepub fn with_relays_incoming_access_control(
self,
access_control: Arc<dyn IncomingAccessControl>
) -> Self
pub fn with_relays_incoming_access_control( self, access_control: Arc<dyn IncomingAccessControl> ) -> Self
Set spawned relays Incoming Access Control
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RelayServiceOptions
impl Send for RelayServiceOptions
impl Sync for RelayServiceOptions
impl Unpin for RelayServiceOptions
impl !UnwindSafe for RelayServiceOptions
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