pub struct SharedMemoryConfig {
pub memory_type: SharedMemoryType,
pub url: Option<String>,
pub namespace: Option<String>,
pub ttl: Option<u64>,
}Expand description
Shared memory configuration
Fields§
§memory_type: SharedMemoryTypeMemory backend type
url: Option<String>Connection URL
namespace: Option<String>Memory namespace/prefix
ttl: Option<u64>TTL for memory entries (seconds)
Trait Implementations§
Source§fn clone(&self) -> SharedMemoryConfig
fn clone(&self) -> SharedMemoryConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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§
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