pub struct WeightsBindingRequest<'a> {
pub loaded_weights_hash: &'a str,
pub requested_scopes: &'a StringSet,
pub requested_tools: &'a StringSet,
}Expand description
Inputs the kernel collects at provider bind. The provider supplies its
loaded weights_hash and the operator supplies the requested
capability set. Banned-tool intersection is computed against the same
requested_scopes because the provider matrix unifies tool
identifiers into the scope namespace.
Fields§
§loaded_weights_hash: &'a strLowercase hex sha-256 of the provider’s loaded weights blob.
The provider computes this; the card binding refusal verifies
byte-equality against the card’s weights_hash.
requested_scopes: &'a StringSetCapability scope set the operator wants to grant against the
bound provider. Subset containment against the card’s
allowed_capability_set is enforced.
requested_tools: &'a StringSetTool identifiers the operator wants to permit. Intersection with
the card’s banned_tools is enforced. May overlap or equal
requested_scopes depending on the deployment model.
Trait Implementations§
Source§impl<'a> Clone for WeightsBindingRequest<'a>
impl<'a> Clone for WeightsBindingRequest<'a>
Source§fn clone(&self) -> WeightsBindingRequest<'a>
fn clone(&self) -> WeightsBindingRequest<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for WeightsBindingRequest<'a>
impl<'a> RefUnwindSafe for WeightsBindingRequest<'a>
impl<'a> Send for WeightsBindingRequest<'a>
impl<'a> Sync for WeightsBindingRequest<'a>
impl<'a> Unpin for WeightsBindingRequest<'a>
impl<'a> UnsafeUnpin for WeightsBindingRequest<'a>
impl<'a> UnwindSafe for WeightsBindingRequest<'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
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>
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