pub struct ServerSection {
pub bind: [u8; 4],
pub port: u16,
pub threads: usize,
pub data_dir: PathBuf,
}Expand description
[server] section.
Fields§
§bind: [u8; 4]IPv4 bind address. Default 127.0.0.1.
port: u16TCP port. Default 6004.
threads: usizeShard / reactor thread count. 0 = auto (CPU count). Default 0.
data_dir: PathBufSnapshot + AOF location. Default ..
Trait Implementations§
Source§impl Clone for ServerSection
impl Clone for ServerSection
Source§fn clone(&self) -> ServerSection
fn clone(&self) -> ServerSection
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 ServerSection
impl Debug for ServerSection
Source§impl Default for ServerSection
impl Default for ServerSection
impl Eq for ServerSection
Source§impl PartialEq for ServerSection
impl PartialEq for ServerSection
Source§fn eq(&self, other: &ServerSection) -> bool
fn eq(&self, other: &ServerSection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServerSection
Auto Trait Implementations§
impl Freeze for ServerSection
impl RefUnwindSafe for ServerSection
impl Send for ServerSection
impl Sync for ServerSection
impl Unpin for ServerSection
impl UnsafeUnpin for ServerSection
impl UnwindSafe for ServerSection
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