pub struct ServerConfig {
pub config_dir: PathBuf,
pub data_dir: PathBuf,
}Fields§
§config_dir: PathBuf§data_dir: PathBufImplementations§
Source§impl ServerConfig
impl ServerConfig
pub fn new(config_dir: PathBuf, data_dir: PathBuf) -> Self
pub fn database_dir(&self) -> &Path
pub fn database_path(&self, interface: &InterfaceName) -> PathBuf
pub fn config_dir(&self) -> &Path
pub fn config_path(&self, interface: &InterfaceName) -> PathBuf
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
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 moreAuto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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