pub struct EnvelopeAttestedRuntimeDataProvider<P> { /* private fields */ }Expand description
Owns a host data provider while supplying envelope-backed identities at the runtime trust boundary. A complete training identity is available only when the envelope carries feature, target and relation fingerprints.
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<EnvelopeAttestedRuntimeDataProvider<P>, DagMlError>where
I: IntoIterator<Item = DataBinding>,
pub fn inner(&self) -> &P
pub fn into_inner(self) -> P
Trait Implementations§
Source§impl<P> Debug for EnvelopeAttestedRuntimeDataProvider<P>where
P: Debug,
impl<P> Debug for EnvelopeAttestedRuntimeDataProvider<P>where
P: Debug,
Source§impl<P> RuntimeDataProvider for EnvelopeAttestedRuntimeDataProvider<P>where
P: RuntimeDataProvider,
impl<P> RuntimeDataProvider for EnvelopeAttestedRuntimeDataProvider<P>where
P: RuntimeDataProvider,
fn materialize( &self, request: &DataMaterializationRequest, ) -> Result<HandleRef, DagMlError>
fn make_view(&self, request: &DataViewRequest) -> Result<HandleRef, DagMlError>
Source§fn training_data_identity(
&self,
binding: &DataBinding,
) -> Result<Option<TrainingDataIdentity>, DagMlError>
fn training_data_identity( &self, binding: &DataBinding, ) -> Result<Option<TrainingDataIdentity>, DagMlError>
Attest the exact feature and target content bound to one training input. Read more
fn coordinator_relations( &self, binding: &DataBinding, ) -> Result<Option<SampleRelationSet>, DagMlError>
Source§fn methods_pls_capability(&self) -> Result<(), DagMlError>
fn methods_pls_capability(&self) -> Result<(), DagMlError>
Confirm that this provider can supply the deliberately narrow numeric
view consumed by the portable Methods PLS controller. The default is a
refusal, so an ordinary data provider can never accidentally expose its
buffers to a native numerical controller.
fn preflight_methods_pls( &self, request: &MethodsPlsDataRequest, ) -> Result<(), DagMlError>
Source§fn methods_pls_data(
&self,
request: &MethodsPlsDataRequest,
) -> Result<MethodsPlsData, DagMlError>
fn methods_pls_data( &self, request: &MethodsPlsDataRequest, ) -> Result<MethodsPlsData, DagMlError>
Return provider-selected row-major numeric values for a Methods PLS
invocation. This is not a raw IO escape hatch: the request carries the
scheduler-created, identity-keyed data views and the provider is solely
responsible for resolving them to rows and targets.
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