Enum flexi_logger::writers::FlWriteMode[][src]

pub enum FlWriteMode {
    DontBuffer,
    Buffer(usize),
    BufferAsync(usizeusizeusize),
}
Expand description

Write modes for the FileLogWriter.

Variants

DontBuffer

Write log messages directly to the file, without buffering (this is the default).

Buffer(usize)

Use a buffer when writing log messages to the file.

BufferAsync(usizeusizeusize)

Send log messages to a dedicated output thread, using a channel with a configurable capacity, and a pool for the messages with configurable size, and a max capacity for the elements that are pooled Lets the FileLogWriter send logs through an unbounded channel to an output thread, which does the file I/O, the rotation, and the cleanup.

Uses buffered I/O (with buffer size .0), and a bounded message pool (with capacity .1), and an initial capacity for the message buffers (.2).

Only available with feature async.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.