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>
) -> Mailboxes
pub fn main( address: impl Into<Address>, incoming_access_control: Arc<dyn IncomingAccessControl>, outgoing_access_control: Arc<dyn OutgoingAccessControl> ) -> Mailboxes
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 main_address_ref(&self) -> &Address
pub fn main_address_ref(&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 Freeze for Mailboxes
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
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more