pub enum CheckoutCaller<'a> {
Kernel,
Local(&'a str),
Peer(&'a PeerCtx),
}Expand description
Who is asking.
Variants§
Kernel
This node’s own kernel (internal callers; not rate limited).
Local(&'a str)
An RPC caller on this node, named by its principal (a project, a token, or the local operator). Charged to its own budget and to the node-wide local budget; the gate is asked as this principal.
Peer(&'a PeerCtx)
A delivery from a mesh peer; the context is built from the service
origin, so node_verified means AdmittedPeer.
Trait Implementations§
Source§impl<'a> Clone for CheckoutCaller<'a>
impl<'a> Clone for CheckoutCaller<'a>
impl<'a> Copy for CheckoutCaller<'a>
Auto Trait Implementations§
impl<'a> Freeze for CheckoutCaller<'a>
impl<'a> RefUnwindSafe for CheckoutCaller<'a>
impl<'a> Send for CheckoutCaller<'a>
impl<'a> Sync for CheckoutCaller<'a>
impl<'a> Unpin for CheckoutCaller<'a>
impl<'a> UnsafeUnpin for CheckoutCaller<'a>
impl<'a> UnwindSafe for CheckoutCaller<'a>
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
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