pub enum PersistentMemory {
Enabled,
Disabled,
Enforced,
}Expand description
Configuration options for persistent memory pools in Ruda runtimes.
Variants§
Enabled
Persistent memory is enabled but used only when explicitly specified.
Disabled
Persistent memory is disabled, allowing dynamic allocations.
Enforced
Persistent memory is enforced, preventing dynamic allocations.
§Warning
Enforcing persistent memory may cause out-of-memory errors if tensors of varying sizes are used.
Trait Implementations§
Source§impl Clone for PersistentMemory
impl Clone for PersistentMemory
Source§impl Debug for PersistentMemory
impl Debug for PersistentMemory
Source§impl Default for PersistentMemory
impl Default for PersistentMemory
Source§impl<'de> Deserialize<'de> for PersistentMemory
impl<'de> Deserialize<'de> for PersistentMemory
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
Auto Trait Implementations§
impl Freeze for PersistentMemory
impl RefUnwindSafe for PersistentMemory
impl Send for PersistentMemory
impl Sync for PersistentMemory
impl Unpin for PersistentMemory
impl UnsafeUnpin for PersistentMemory
impl UnwindSafe for PersistentMemory
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