Skip to main content

CapabilityCatalog

Struct CapabilityCatalog 

Source
pub struct CapabilityCatalog { /* private fields */ }
Expand description

Deterministically ordered provider capabilities consumed once by planning.

Implementations§

Source§

impl CapabilityCatalog

Source

pub fn new( device: DeviceDescriptor, operations: Vec<OperationDescriptor>, providers: BTreeMap<OperationId, Vec<OperationProviderDescriptor>>, engine_providers: Vec<EngineProviderDescriptor>, ) -> Result<Self, VNextError>

Source

pub fn device(&self) -> &DeviceDescriptor

Source

pub fn providers_for( &self, operation_id: &OperationId, ) -> Result<&[OperationProviderDescriptor], VNextError>

Source

pub fn providers_for_node( &self, node_id: &NodeId, operation_id: &OperationId, ) -> Result<&[OperationProviderDescriptor], VNextError>

Resolves providers with the requesting plan node attached to failures.

Source

pub fn operation( &self, operation_id: &OperationId, ) -> Result<&OperationDescriptor, VNextError>

Source

pub fn operation_for_node( &self, node_id: &NodeId, operation_id: &OperationId, ) -> Result<&OperationDescriptor, VNextError>

Resolves an operation with the requesting plan node attached to failures.

Source

pub fn provider_compatibility( &self, request: ProviderCompatibilityRequest, ) -> Result<ProviderCompatibilityReport, VNextError>

Source

pub fn operations(&self) -> &BTreeMap<OperationId, OperationDescriptor>

Source

pub fn providers( &self, ) -> &BTreeMap<OperationId, Vec<OperationProviderDescriptor>>

Source

pub fn engine_providers( &self, ) -> &BTreeMap<ProviderId, EngineProviderDescriptor>

Source

pub fn weight_materializers( &self, ) -> &BTreeMap<WeightMaterializerId, WeightMaterializerDescriptor>

Source

pub fn weight_materializer( &self, materializer_id: &WeightMaterializerId, ) -> Result<&WeightMaterializerDescriptor, VNextError>

Source

pub fn engine_provider( &self, provider_id: &ProviderId, required_version: ContractVersion, ) -> Result<&EngineProviderDescriptor, VNextError>

Source

pub fn native_operator_provider_catalog( &self, backend: NativeOperatorBackend, ) -> Result<NativeOperatorProviderCatalog, VNextError>

Projects the exact live registry into the device-independent identity catalog consumed by native artifact packaging. Physical entrypoint ownership remains in the native package definition.

Source

pub fn fingerprint(&self) -> Result<String, VNextError>

Trait Implementations§

Source§

impl Clone for CapabilityCatalog

Source§

fn clone(&self) -> CapabilityCatalog

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CapabilityCatalog

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CapabilityCatalog

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for CapabilityCatalog

Source§

impl PartialEq for CapabilityCatalog

Source§

fn eq(&self, other: &CapabilityCatalog) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for CapabilityCatalog

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CapabilityCatalog

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V