Struct ockam_core::Mailbox
source · pub struct Mailbox { /* private fields */ }
Expand description
A Mailbox
controls the dispatch of incoming messages for a
particular Address
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
allowed to send and receive all 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<Mailbox> for Mailbox
impl PartialOrd<Mailbox> 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 more