pub struct CallSnapshot { /* private fields */ }Expand description
The policy snapshot of ONE call (G08), taken once at its entry — where the
MCP dispatcher opens the call’s capture, where a CLI run starts — and
carried by the capture: the gateway rules, whether protection is active
for the request’s project, and the active policy pack. While the capture
is open, carrier::current_policy returns these rules, so the release
point, the receipt duty, the trace sidecar and the stored-copy checks of
the call decide under the rules of its entry, whatever is configured by
the time they run.
Implementations§
Source§impl CallSnapshot
impl CallSnapshot
Sourcepub fn take() -> Self
pub fn take() -> Self
Take the snapshot now. Call inside the request scope: protection and the pack are those of the request’s project. Inside an open capture that carries a snapshot (a run that is part of a call) the gateway rules are that call’s.
Sourcepub fn admission(&self) -> &StoreAdmission
pub fn admission(&self) -> &StoreAdmission
The gateway rules of the call.
Trait Implementations§
Source§impl Clone for CallSnapshot
impl Clone for CallSnapshot
Auto Trait Implementations§
impl Forget for CallSnapshot
impl Freeze for CallSnapshot
impl Move for CallSnapshot
impl RefUnwindSafe for CallSnapshot
impl Send for CallSnapshot
impl Sync for CallSnapshot
impl Unpin for CallSnapshot
impl UnsafeUnpin for CallSnapshot
impl UnwindSafe for CallSnapshot
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
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
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> ⓘ
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