Struct ockam_core::Mailbox
source · pub struct Mailbox { /* private fields */ }
Expand description
Implementations§
source§impl Mailbox
impl Mailbox
sourcepub fn new(
address: impl Into<Address>,
incoming: Arc<dyn IncomingAccessControl>,
outgoing: Arc<dyn OutgoingAccessControl>
) -> Self
pub fn new( address: impl Into<Address>, incoming: Arc<dyn IncomingAccessControl>, outgoing: Arc<dyn OutgoingAccessControl> ) -> Self
Create a new Mailbox
with the given Address
, IncomingAccessControl
and OutgoingAccessControl
sourcepub fn deny_all(address: impl Into<Address>) -> Self
pub fn deny_all(address: impl Into<Address>) -> Self
Create a new Mailbox
not allowed to send nor receive any messages
sourcepub fn incoming_access_control(&self) -> &Arc<dyn IncomingAccessControl>
pub fn incoming_access_control(&self) -> &Arc<dyn IncomingAccessControl>
Return a reference to the IncomingAccessControl
for this mailbox
sourcepub fn outgoing_access_control(&self) -> &Arc<dyn OutgoingAccessControl>
pub fn outgoing_access_control(&self) -> &Arc<dyn OutgoingAccessControl>
Return a reference to the OutgoingAccessControl
for this mailbox
Trait Implementations§
source§impl Ord for Mailbox
impl Ord for Mailbox
source§impl PartialOrd for Mailbox
impl PartialOrd for Mailbox
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Mailbox
Auto Trait Implementations§
impl !RefUnwindSafe for Mailbox
impl Send for Mailbox
impl Sync for Mailbox
impl Unpin for Mailbox
impl !UnwindSafe for Mailbox
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