pub struct LogOption {
pub level: Option<LEVEL>,
pub format: Option<u8>,
pub formatter: Option<String>,
pub console: Option<bool>,
pub fileoption: Option<Box<dyn FileOption>>,
}Fields§
§level: Option<LEVEL>§format: Option<u8>§formatter: Option<String>§console: Option<bool>§fileoption: Option<Box<dyn FileOption>>Implementations§
Source§impl LogOption
impl LogOption
pub fn new() -> Self
pub fn set_format(&mut self, f: u8) -> &mut Self
pub fn set_formatter(&mut self, f: String) -> &mut Self
pub fn set_level(&mut self, level: LEVEL) -> &mut Self
pub fn set_console(&mut self, console: bool) -> &mut Self
pub fn set_fileoption(&mut self, h: impl FileOption + 'static) -> &mut Self
pub fn take(&mut self) -> Self
Trait Implementations§
Source§impl OptionTrait for LogOption
impl OptionTrait for LogOption
Auto Trait Implementations§
impl Freeze for LogOption
impl !RefUnwindSafe for LogOption
impl Send for LogOption
impl Sync for LogOption
impl Unpin for LogOption
impl !UnwindSafe for LogOption
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