Struct ockam_core::Mailboxes
source · pub struct Mailboxes { /* private fields */ }
Implementations§
source§impl Mailboxes
impl Mailboxes
sourcepub fn main(
address: impl Into<Address>,
incoming_access_control: Arc<dyn IncomingAccessControl>,
outgoing_access_control: Arc<dyn OutgoingAccessControl>
) -> Self
pub fn main( address: impl Into<Address>, incoming_access_control: Arc<dyn IncomingAccessControl>, outgoing_access_control: Arc<dyn OutgoingAccessControl> ) -> Self
Create Mailboxes
with only main Mailbox
for the given
Address
with IncomingAccessControl
and OutgoingAccessControl
sourcepub fn additional_addresses(&self) -> Vec<Address>
pub fn additional_addresses(&self) -> Vec<Address>
sourcepub fn main_address(&self) -> Address
pub fn main_address(&self) -> Address
sourcepub fn find_mailbox(&self, msg_addr: &Address) -> Option<&Mailbox>
pub fn find_mailbox(&self, msg_addr: &Address) -> Option<&Mailbox>
Return true
if the given RelayMessage
is authorized to be received by this Mailboxes
Return true
if the given RelayMessage
is authorized to be sent by this Mailboxes
sourcepub fn main_mailbox(&self) -> &Mailbox
pub fn main_mailbox(&self) -> &Mailbox
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Mailboxes
impl Send for Mailboxes
impl Sync for Mailboxes
impl Unpin for Mailboxes
impl !UnwindSafe for Mailboxes
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