pub struct ServerConfig {
pub path: PathBuf,
pub server: InnerServerConfig,
pub socket_config: SocketConfig,
pub lease_config: LeaseConfig,
}Expand description
Representation of a toe-beans.toml file. Used by the Server.
This is exported for you to use in your application to generate a toe-beans.toml.
Fields§
§path: PathBufThe path to a directory where this config will exist on disk.
server: InnerServerConfigA subtable of configuration that is specific to, and used by, the Server.
socket_config: SocketConfigA subtable of configuration that is specific to, and passed to, a Socket by both a Server and a Client.
lease_config: LeaseConfigA subtable of configuration that is specific to, and passed to, a Leases by the Server.
Implementations§
Source§impl ServerConfig
impl ServerConfig
Trait Implementations§
Source§impl Debug for ServerConfig
impl Debug for ServerConfig
Source§impl Default for ServerConfig
impl Default for ServerConfig
Source§impl<'de> Deserialize<'de> for ServerConfig
impl<'de> Deserialize<'de> for ServerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto 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