pub struct RuntimeAdmissionContext<'a> {
pub request: &'a ToolCallRequest,
pub extra_metadata: Option<&'a Value>,
pub now_unix_secs: u64,
pub now_unix_ms: u64,
pub matched_grant_index: Option<usize>,
pub local_kernel_id: String,
}Expand description
Context passed to optional runtime admission hooks after capability, request matching, governed-admission, and guard checks pass, but before dispatch and federation co-signing side effects.
Fields§
§request: &'a ToolCallRequest§extra_metadata: Option<&'a Value>§now_unix_secs: u64§now_unix_ms: u64§matched_grant_index: Option<usize>§local_kernel_id: StringAuto Trait Implementations§
impl<'a> Freeze for RuntimeAdmissionContext<'a>
impl<'a> RefUnwindSafe for RuntimeAdmissionContext<'a>
impl<'a> Send for RuntimeAdmissionContext<'a>
impl<'a> Sync for RuntimeAdmissionContext<'a>
impl<'a> Unpin for RuntimeAdmissionContext<'a>
impl<'a> UnsafeUnpin for RuntimeAdmissionContext<'a>
impl<'a> UnwindSafe for RuntimeAdmissionContext<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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