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>
) -> Mailbox
pub fn new( address: impl Into<Address>, incoming: Arc<dyn IncomingAccessControl>, outgoing: Arc<dyn OutgoingAccessControl> ) -> Mailbox
Create a new Mailbox
with the given Address
, IncomingAccessControl
and OutgoingAccessControl
sourcepub fn deny_all(address: impl Into<Address>) -> Mailbox
pub fn deny_all(address: impl Into<Address>) -> Mailbox
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 PartialEq for Mailbox
impl PartialEq 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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.