pub struct ServerSettings {
pub addr: SocketAddr,
pub pid_file: Option<PathBuf>,
pub addr_file: Option<PathBuf>,
}Fields§
§addr: SocketAddr§pid_file: Option<PathBuf>§addr_file: Option<PathBuf>Implementations§
Source§impl ServerSettings
impl ServerSettings
pub fn from_env() -> Result<Self, SettingsFromEnvError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerSettings
impl RefUnwindSafe for ServerSettings
impl Send for ServerSettings
impl Sync for ServerSettings
impl Unpin for ServerSettings
impl UnsafeUnpin for ServerSettings
impl UnwindSafe for ServerSettings
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