pub struct EnvelopeAttestedRuntimeDataProvider<P> { /* private fields */ }Expand description
Owns a host data provider while supplying exact, envelope-backed training attestations at the runtime trust boundary.
Construction validates the complete binding/envelope set before the inner
provider can be invoked. Runtime calls are delegated only when their full
DataBinding is field-for-field equal to the binding registered for the
rendered V1 requirement key.
Implementations§
Source§impl<P> EnvelopeAttestedRuntimeDataProvider<P>
impl<P> EnvelopeAttestedRuntimeDataProvider<P>
pub fn new<I>(
inner: P,
bindings: I,
envelopes: BTreeMap<String, ExternalDataPlanEnvelope>,
) -> Result<Self>where
I: IntoIterator<Item = DataBinding>,
pub fn inner(&self) -> &P
pub fn into_inner(self) -> P
Trait Implementations§
Source§impl<P: Debug> Debug for EnvelopeAttestedRuntimeDataProvider<P>
impl<P: Debug> Debug for EnvelopeAttestedRuntimeDataProvider<P>
Source§impl<P: RuntimeDataProvider> RuntimeDataProvider for EnvelopeAttestedRuntimeDataProvider<P>
impl<P: RuntimeDataProvider> RuntimeDataProvider for EnvelopeAttestedRuntimeDataProvider<P>
fn materialize(&self, request: &DataMaterializationRequest) -> Result<HandleRef>
fn make_view(&self, request: &DataViewRequest) -> Result<HandleRef>
Source§fn training_data_identity(
&self,
binding: &DataBinding,
) -> Result<Option<TrainingDataIdentity>>
fn training_data_identity( &self, binding: &DataBinding, ) -> Result<Option<TrainingDataIdentity>>
Attest the exact feature and target content bound to one training input. Read more
fn coordinator_relations( &self, binding: &DataBinding, ) -> Result<Option<SampleRelationSet>>
Auto Trait Implementations§
impl<P> Freeze for EnvelopeAttestedRuntimeDataProvider<P>where
P: Freeze,
impl<P> RefUnwindSafe for EnvelopeAttestedRuntimeDataProvider<P>where
P: RefUnwindSafe,
impl<P> Send for EnvelopeAttestedRuntimeDataProvider<P>where
P: Send,
impl<P> Sync for EnvelopeAttestedRuntimeDataProvider<P>where
P: Sync,
impl<P> Unpin for EnvelopeAttestedRuntimeDataProvider<P>where
P: Unpin,
impl<P> UnsafeUnpin for EnvelopeAttestedRuntimeDataProvider<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for EnvelopeAttestedRuntimeDataProvider<P>where
P: UnwindSafe,
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