pub struct NonBlockingOptions {
pub enabled: bool,
pub buffered_lines_limit: Option<usize>,
pub lossy: Option<bool>,
pub thread_name: Option<String>,
}Expand description
tracing appender NonBlocking options
Fields§
§enabled: boolWhether non blocking is enabled or not
buffered_lines_limit: Option<usize>Number of lines to buffer before dropping logs (only valid if lossy is enabled)
lossy: Option<bool>If set to true, logs will be dropped when the buffered limit (buffered_lines_limit) is reached
thread_name: Option<String>Override the worker thread’s name.
Trait Implementations§
Source§impl Clone for NonBlockingOptions
impl Clone for NonBlockingOptions
Source§fn clone(&self) -> NonBlockingOptions
fn clone(&self) -> NonBlockingOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NonBlockingOptions
impl Debug for NonBlockingOptions
Source§impl<'de> Deserialize<'de> for NonBlockingOptions
impl<'de> Deserialize<'de> for NonBlockingOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NonBlockingOptions
impl PartialEq for NonBlockingOptions
Source§fn eq(&self, other: &NonBlockingOptions) -> bool
fn eq(&self, other: &NonBlockingOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NonBlockingOptions
impl Serialize for NonBlockingOptions
impl Eq for NonBlockingOptions
impl StructuralPartialEq for NonBlockingOptions
Auto Trait Implementations§
impl Freeze for NonBlockingOptions
impl RefUnwindSafe for NonBlockingOptions
impl Send for NonBlockingOptions
impl Sync for NonBlockingOptions
impl Unpin for NonBlockingOptions
impl UnsafeUnpin for NonBlockingOptions
impl UnwindSafe for NonBlockingOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.