pub struct MaxFileSize(/* private fields */);Expand description
Maximum file size for log rotation.
Provides convenient constructors for common size units.
§Example
use tauri_plugin_tracing::{Builder, MaxFileSize};
Builder::new()
.with_file_logging()
.with_max_file_size(MaxFileSize::mb(10)) // Rotate at 10 MB
.build::<tauri::Wry>();Implementations§
Source§impl MaxFileSize
impl MaxFileSize
Trait Implementations§
Source§impl Clone for MaxFileSize
impl Clone for MaxFileSize
Source§fn clone(&self) -> MaxFileSize
fn clone(&self) -> MaxFileSize
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 MaxFileSize
impl Debug for MaxFileSize
Source§impl From<u64> for MaxFileSize
impl From<u64> for MaxFileSize
impl Copy for MaxFileSize
Auto Trait Implementations§
impl Freeze for MaxFileSize
impl RefUnwindSafe for MaxFileSize
impl Send for MaxFileSize
impl Sync for MaxFileSize
impl Unpin for MaxFileSize
impl UnwindSafe for MaxFileSize
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