pub struct FileSettings { /* private fields */ }Expand description
Settings for logs files and rotation.
Implementations§
Source§impl FileSettings
impl FileSettings
pub fn new( path: PathBuf, capacity: usize, file_size: FileSize, filename: String, file_extension: String, ) -> Self
pub fn path(&self) -> &PathBuf
pub fn filename(&self) -> &String
pub fn file_extension(&self) -> &String
pub fn file_size(&self) -> u64
pub fn capacity(&self) -> usize
Trait Implementations§
Source§impl Clone for FileSettings
impl Clone for FileSettings
Source§fn clone(&self) -> FileSettings
fn clone(&self) -> FileSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileSettings
impl Debug for FileSettings
Auto Trait Implementations§
impl Freeze for FileSettings
impl RefUnwindSafe for FileSettings
impl Send for FileSettings
impl Sync for FileSettings
impl Unpin for FileSettings
impl UnsafeUnpin for FileSettings
impl UnwindSafe for FileSettings
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