pub struct OperationProviderDescriptor { /* private fields */ }Implementations§
Source§impl OperationProviderDescriptor
impl OperationProviderDescriptor
pub fn new( provider_id: ProviderId, operation_id: OperationId, operation_fingerprint: impl Into<String>, provider_implementation_fingerprint: impl Into<String>, execution_semantics: ProviderExecutionSemantics, version: ContractVersion, device_id: DeviceId, capabilities: BTreeSet<CapabilityId>, accepted_weight_formats: BTreeSet<WeightFormatId>, accepted_quantization_formats: BTreeSet<QuantizationFormatId>, dynamic_storage_bindings: Vec<ProviderStorageBindingRequirement>, resource_estimator_id: impl Into<String>, resource_estimator_version: ContractVersion, resource_estimator_implementation_fingerprint: impl Into<String>, ) -> Result<Self, VNextError>
pub fn provider_id(&self) -> &ProviderId
pub fn operation_id(&self) -> &OperationId
pub fn operation_fingerprint(&self) -> &str
pub fn provider_implementation_fingerprint(&self) -> &str
pub const fn execution_semantics(&self) -> ProviderExecutionSemantics
pub fn version(&self) -> ContractVersion
pub fn device_id(&self) -> &DeviceId
pub fn capabilities(&self) -> &BTreeSet<CapabilityId>
pub fn accepted_weight_formats(&self) -> &BTreeSet<WeightFormatId>
pub fn accepted_quantization_formats(&self) -> &BTreeSet<QuantizationFormatId>
pub fn dynamic_storage_bindings(&self) -> &[ProviderStorageBindingRequirement]
pub fn dynamic_storage_for( &self, role: ResolvedValueRole, ordinal: u32, ) -> Option<&DynamicStorageRequirement>
pub fn resource_estimator_id(&self) -> &str
pub const fn resource_estimator_version(&self) -> ContractVersion
pub fn resource_estimator_implementation_fingerprint(&self) -> &str
Trait Implementations§
Source§impl Clone for OperationProviderDescriptor
impl Clone for OperationProviderDescriptor
Source§fn clone(&self) -> OperationProviderDescriptor
fn clone(&self) -> OperationProviderDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperationProviderDescriptor
impl Debug for OperationProviderDescriptor
Source§impl<'de> Deserialize<'de> for OperationProviderDescriptor
impl<'de> Deserialize<'de> for OperationProviderDescriptor
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OperationProviderDescriptor
impl StructuralPartialEq for OperationProviderDescriptor
Auto Trait Implementations§
impl Freeze for OperationProviderDescriptor
impl RefUnwindSafe for OperationProviderDescriptor
impl Send for OperationProviderDescriptor
impl Sync for OperationProviderDescriptor
impl Unpin for OperationProviderDescriptor
impl UnsafeUnpin for OperationProviderDescriptor
impl UnwindSafe for OperationProviderDescriptor
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