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,
pub tls_cert: Option<PathBuf>,
pub tls_key: Option<PathBuf>,
}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.
tls_cert: Option<PathBuf>PEM certificate chain for serving the http transport over TLS (HTTPS).
None (the default) keeps the transport plaintext. Engaged only when
both tls_cert and tls_key are set.
tls_key: Option<PathBuf>PEM private key matching tls_cert.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more