#[non_exhaustive]pub struct MemoryConfiguration {
pub enabled: bool,
}Expand description
Per-session configuration for the runtime memory feature.
Supplied via SessionConfig::with_memory /
ResumeSessionConfig::with_memory. When a session is created or resumed
without a memory configuration, the runtime applies its own default for the
memory feature.
The type is extensible: today it carries enabled, and
further tuning knobs can be added as optional fields without a breaking
change.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: boolWhether the memory feature is enabled for this session.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryConfiguration
impl Clone for MemoryConfiguration
Source§fn clone(&self) -> MemoryConfiguration
fn clone(&self) -> MemoryConfiguration
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 MemoryConfiguration
impl Debug for MemoryConfiguration
Source§impl<'de> Deserialize<'de> for MemoryConfiguration
impl<'de> Deserialize<'de> for MemoryConfiguration
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 MemoryConfiguration
Source§impl PartialEq for MemoryConfiguration
impl PartialEq for MemoryConfiguration
Source§fn eq(&self, other: &MemoryConfiguration) -> bool
fn eq(&self, other: &MemoryConfiguration) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MemoryConfiguration
impl Serialize for MemoryConfiguration
impl StructuralPartialEq for MemoryConfiguration
Auto Trait Implementations§
impl Freeze for MemoryConfiguration
impl RefUnwindSafe for MemoryConfiguration
impl Send for MemoryConfiguration
impl Sync for MemoryConfiguration
impl Unpin for MemoryConfiguration
impl UnsafeUnpin for MemoryConfiguration
impl UnwindSafe for MemoryConfiguration
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