pub struct Config {
pub memory_file_path: String,
pub transport: Transport,
pub bind_addr: String,
pub durability: Durability,
pub auth_token: Option<Arc<str>>,
pub mmap_size: i64,
pub lru_cache_size: usize,
pub read_pool_size: usize,
}Fields§
§memory_file_path: String§transport: Transport§bind_addr: String§durability: Durability§auth_token: Option<Arc<str>>Optional bearer token required on the tcp and http transports. When
None, those transports accept unauthenticated connections (stdio is
always local and never authenticated).
mmap_size: i64§lru_cache_size: usize§read_pool_size: usizeSize of the read-only connection pool (concurrent reads). Always >= 1.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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