[][src]Struct polyverse_file_rotate::FileRotate

pub struct FileRotate { /* fields omitted */ }

The main writer used for rotating logs.

Implementations

impl FileRotate[src]

pub fn new<P: AsRef<Path>>(
    path: P,
    rotation_mode: RotationMode,
    max_file_number: usize
) -> Result<Self, Error>
[src]

Create a new FileRotate.

The basename of the path is used to create new log files by appending an extension of the form .N, where N is 0..=max_file_number.

rotation_mode specifies the limits for rotating a file.

Trait Implementations

impl Debug for FileRotate[src]

impl Write for FileRotate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.