pub struct ServerPaths {
pub server_dir: PathBuf,
pub executable: PathBuf,
pub logfile: PathBuf,
pub pidfile: PathBuf,
}
Fields§
§server_dir: PathBuf
§executable: PathBuf
§logfile: PathBuf
§pidfile: PathBuf
Implementations§
Source§impl ServerPaths
impl ServerPaths
pub fn get_running_pid(&self) -> Option<u32>
Sourcepub fn delete(&self) -> Result<(), WrappedError>
pub fn delete(&self) -> Result<(), WrappedError>
Delete the server directory
pub fn write_pid(&self, pid: u32) -> Result<(), WrappedError>
Auto Trait Implementations§
impl Freeze for ServerPaths
impl RefUnwindSafe for ServerPaths
impl Send for ServerPaths
impl Sync for ServerPaths
impl Unpin for ServerPaths
impl UnwindSafe for ServerPaths
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