pub struct DecisionModelCapabilities {
pub backend: String,
pub device: DeviceKind,
pub model_architecture: ModelArchitecture,
pub supports_batching: bool,
pub max_batch_size: Option<usize>,
pub batch_size: Option<usize>,
pub supports_async: bool,
pub supports_cancellation: bool,
pub supports_parallel_execution: bool,
pub recommended_parallelism: Option<usize>,
pub supports_structured_decisions: bool,
}Expand description
Backend/model execution facts used by the structured-decision planner.
Fields§
§backend: String§device: DeviceKind§model_architecture: ModelArchitecture§supports_batching: bool§max_batch_size: Option<usize>§batch_size: Option<usize>§supports_async: bool§supports_cancellation: boolTrue only when an in-flight native operation can actually be interrupted.
supports_parallel_execution: bool§recommended_parallelism: Option<usize>§supports_structured_decisions: boolImplementations§
Source§impl DecisionModelCapabilities
impl DecisionModelCapabilities
pub fn conservative(backend: impl Into<String>) -> DecisionModelCapabilities
Trait Implementations§
Source§impl Clone for DecisionModelCapabilities
impl Clone for DecisionModelCapabilities
Source§fn clone(&self) -> DecisionModelCapabilities
fn clone(&self) -> DecisionModelCapabilities
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 DecisionModelCapabilities
impl Debug for DecisionModelCapabilities
Source§impl<'de> Deserialize<'de> for DecisionModelCapabilities
impl<'de> Deserialize<'de> for DecisionModelCapabilities
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecisionModelCapabilities, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecisionModelCapabilities, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DecisionModelCapabilities
Source§impl Serialize for DecisionModelCapabilities
impl Serialize for DecisionModelCapabilities
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DecisionModelCapabilities
Auto Trait Implementations§
impl Freeze for DecisionModelCapabilities
impl RefUnwindSafe for DecisionModelCapabilities
impl Send for DecisionModelCapabilities
impl Sync for DecisionModelCapabilities
impl Unpin for DecisionModelCapabilities
impl UnsafeUnpin for DecisionModelCapabilities
impl UnwindSafe for DecisionModelCapabilities
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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