pub enum StateResidencyClass {
AlwaysDeviceMutable,
SealablePaged,
LayerScopedOffloadable,
}Expand description
Runtime ownership behavior for live model state.
Variants§
AlwaysDeviceMutable
Small mutable state that remains on the execution device.
SealablePaged
Append-only state that becomes immutable blocks before paging.
LayerScopedOffloadable
Mutable state promoted only for its owning layer.
Trait Implementations§
Source§impl Clone for StateResidencyClass
impl Clone for StateResidencyClass
Source§fn clone(&self) -> StateResidencyClass
fn clone(&self) -> StateResidencyClass
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 moreimpl Copy for StateResidencyClass
Source§impl Debug for StateResidencyClass
impl Debug for StateResidencyClass
Source§impl<'de> Deserialize<'de> for StateResidencyClass
impl<'de> Deserialize<'de> for StateResidencyClass
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 StateResidencyClass
Source§impl From<MutableStateResidency> for StateResidencyClass
impl From<MutableStateResidency> for StateResidencyClass
Source§fn from(value: MutableStateResidency) -> Self
fn from(value: MutableStateResidency) -> Self
Converts to this type from the input type.
Source§impl Hash for StateResidencyClass
impl Hash for StateResidencyClass
Source§impl PartialEq for StateResidencyClass
impl PartialEq for StateResidencyClass
Source§impl Serialize for StateResidencyClass
impl Serialize for StateResidencyClass
impl StructuralPartialEq for StateResidencyClass
Auto Trait Implementations§
impl Freeze for StateResidencyClass
impl RefUnwindSafe for StateResidencyClass
impl Send for StateResidencyClass
impl Sync for StateResidencyClass
impl Unpin for StateResidencyClass
impl UnsafeUnpin for StateResidencyClass
impl UnwindSafe for StateResidencyClass
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