pub struct ServerDefault {
pub logger: Arc<LogFilter>,
/* private fields */
}Expand description
An ServerFacts for general use
Fields§
§logger: Arc<LogFilter>Implementations§
Source§impl ServerDefault
impl ServerDefault
pub fn new(config: ServerConfig) -> Arc<Self>
pub fn set_log_level(&self, level: Level)
Trait Implementations§
Source§impl ServerFacts for ServerDefault
impl ServerFacts for ServerDefault
Source§fn new_logger(&self) -> Arc<LogFilter>
fn new_logger(&self) -> Arc<LogFilter>
Construct a captains_log::filter::Filter to oganize log of a client
Source§fn get_config(&self) -> &ServerConfig
fn get_config(&self) -> &ServerConfig
You should keep ServerConfig inside, get_config() will return the reference.
Auto Trait Implementations§
impl Freeze for ServerDefault
impl RefUnwindSafe for ServerDefault
impl Send for ServerDefault
impl Sync for ServerDefault
impl Unpin for ServerDefault
impl UnsafeUnpin for ServerDefault
impl UnwindSafe for ServerDefault
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