pub struct StateMechanismCapabilities { /* private fields */ }Expand description
Exact, family-neutral mutable-state mechanisms reported by a backend.
Implementations§
Source§impl StateMechanismCapabilities
impl StateMechanismCapabilities
Sourcepub fn new(
components: impl IntoIterator<Item = StateComponentMechanism>,
) -> Self
pub fn new( components: impl IntoIterator<Item = StateComponentMechanism>, ) -> Self
Creates a fail-closed report for exact architecture-declared components.
Sourcepub fn with_floating_state_dtype(
self,
source: TensorDtype,
dtype: StateStorageDtype,
) -> Self
pub fn with_floating_state_dtype( self, source: TensorDtype, dtype: StateStorageDtype, ) -> Self
Binds floating-state support to the exact architecture-selected source dtype.
Sourcepub fn floating_state_dtype(&self) -> Option<(&TensorDtype, StateStorageDtype)>
pub fn floating_state_dtype(&self) -> Option<(&TensorDtype, StateStorageDtype)>
Returns the source and native representation used for floating-state support queries.
Sourcepub const fn with_transactions(self, checkpoint: bool, rollback: bool) -> Self
pub const fn with_transactions(self, checkpoint: bool, rollback: bool) -> Self
Declares transactional checkpoint and rollback facilities.
Sourcepub const fn with_reset(self, supported: bool) -> Self
pub const fn with_reset(self, supported: bool) -> Self
Declares complete state reset support.
Sourcepub const fn with_prompt_cache(self, supported: bool) -> Self
pub const fn with_prompt_cache(self, supported: bool) -> Self
Declares prompt-cache persistence and restoration support.
Sourcepub const fn with_observation_retention(self, supported: bool) -> Self
pub const fn with_observation_retention(self, supported: bool) -> Self
Declares that observed submissions retain every live component.
Sourcepub fn components(&self) -> &[StateComponentMechanism]
pub fn components(&self) -> &[StateComponentMechanism]
Returns exact supported component mechanisms.
Sourcepub const fn checkpoint(&self) -> bool
pub const fn checkpoint(&self) -> bool
Returns whether state checkpoints are implemented.
Sourcepub const fn prompt_cache(&self) -> bool
pub const fn prompt_cache(&self) -> bool
Returns whether prompt-cache persistence is implemented.
Sourcepub const fn observation_retention(&self) -> bool
pub const fn observation_retention(&self) -> bool
Returns whether observation retains every live component.
Trait Implementations§
Source§impl Clone for StateMechanismCapabilities
impl Clone for StateMechanismCapabilities
Source§fn clone(&self) -> StateMechanismCapabilities
fn clone(&self) -> StateMechanismCapabilities
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 StateMechanismCapabilities
impl Debug for StateMechanismCapabilities
impl Eq for StateMechanismCapabilities
impl StructuralPartialEq for StateMechanismCapabilities
Auto Trait Implementations§
impl Freeze for StateMechanismCapabilities
impl RefUnwindSafe for StateMechanismCapabilities
impl Send for StateMechanismCapabilities
impl Sync for StateMechanismCapabilities
impl Unpin for StateMechanismCapabilities
impl UnsafeUnpin for StateMechanismCapabilities
impl UnwindSafe for StateMechanismCapabilities
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