pub struct MailboxReadGate { /* private fields */ }Expand description
Immutable trusted-local owner/reader policy, composed with an existing gate.
Grants compare both actor kind and complete id. A caller label containing colons is not split into a hierarchy. This configuration is trusted host policy, not caller authentication. Replacing it requires a new serving epoch.
Implementations§
Source§impl MailboxReadGate
impl MailboxReadGate
Sourcepub fn new(
inner: Arc<dyn Gate>,
owner: ActorRef,
readers: Vec<ActorRef>,
) -> Result<MailboxReadGate, MailboxPolicyError>
pub fn new( inner: Arc<dyn Gate>, owner: ActorRef, readers: Vec<ActorRef>, ) -> Result<MailboxReadGate, MailboxPolicyError>
Construct and validate a bounded policy. Duplicate readers are harmless; the raw list is bounded before deduplication.
Trait Implementations§
Source§impl Clone for MailboxReadGate
impl Clone for MailboxReadGate
Source§fn clone(&self) -> MailboxReadGate
fn clone(&self) -> MailboxReadGate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MailboxReadGate
impl Debug for MailboxReadGate
Source§impl Gate for MailboxReadGate
impl Gate for MailboxReadGate
Source§fn check(&self, req: &GateRequest) -> Result<GateDecision, GateError>
fn check(&self, req: &GateRequest) -> Result<GateDecision, GateError>
Evaluate
req, returning an allow/deny decision or a backend GateError.Source§fn check_mailbox_read(
&self,
req: &GateRequest,
owner: &ActorRef,
) -> Result<GateDecision, GateError>
fn check_mailbox_read( &self, req: &GateRequest, owner: &ActorRef, ) -> Result<GateDecision, GateError>
Evaluate the separate capability to read another actor’s mailbox. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for MailboxReadGate
impl !UnwindSafe for MailboxReadGate
impl Freeze for MailboxReadGate
impl Send for MailboxReadGate
impl Sync for MailboxReadGate
impl Unpin for MailboxReadGate
impl UnsafeUnpin for MailboxReadGate
Blanket Implementations§
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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