pub enum LogPath {
Path(PathBuf),
}Variants§
Path(PathBuf)
§LogPath enum
Defines the Path variable as std::PathBuf for path What should i even write here and why?
Trait Implementations§
Source§impl From<PathBuf> for LogPath
impl From<PathBuf> for LogPath
Source§fn from(path: PathBuf) -> Self
fn from(path: PathBuf) -> Self
From trait implementation for LogPath that allows it to be constructed from a PathBuf.
§Examples
use logger_rust::*;
use std::path::PathBuf;
fn main() {
set_log_level(LogLevel::File);
set_log_path(LogConfig::Path(LogPath::from("C:/Users/qruie/Documents")));
// ..
}Auto Trait Implementations§
impl Freeze for LogPath
impl RefUnwindSafe for LogPath
impl Send for LogPath
impl Sync for LogPath
impl Unpin for LogPath
impl UnsafeUnpin for LogPath
impl UnwindSafe for LogPath
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