spdlog/sink/async_sink/
mod.rs

1mod async_pool_sink;
2
3pub use async_pool_sink::*;
4
5/// Overflow policy for [asynchronous sinks].
6///
7/// When the channel is full, an incoming operation is handled according to the
8/// specified policy.
9///
10/// [asynchronous sinks]: crate::sink::AsyncPoolSink
11#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
12#[non_exhaustive]
13pub enum OverflowPolicy {
14    /// Blocks until the channel is not full.
15    Block,
16    /// Drops the incoming operation.
17    DropIncoming,
18    // DropOldest, // waiting for https://github.com/crossbeam-rs/crossbeam/issues/400
19}