pub enum StdOutLoggerMode {
Immediate,
Async {
timeout_millis: u64,
buffer_limit: usize,
},
}Expand description
Mode for stdout logger in native builds. Supports both immediate and asynchronous logging.
Variants§
Immediate
Immediate synchronous logging (no buffering).
Async
Asynchronous logging with configurable timeout and buffer.
Implementations§
Source§impl StdOutLoggerMode
impl StdOutLoggerMode
Sourcepub const DEFAULT_FLUSH_TIMEOUT_MILLIS: u64 = 100
pub const DEFAULT_FLUSH_TIMEOUT_MILLIS: u64 = 100
100 ms default timeout
Sourcepub const DEFAULT_BUFFER_LIMIT: usize
pub const DEFAULT_BUFFER_LIMIT: usize
1 MB limit
Trait Implementations§
Source§impl Clone for StdOutLoggerMode
impl Clone for StdOutLoggerMode
Source§fn clone(&self) -> StdOutLoggerMode
fn clone(&self) -> StdOutLoggerMode
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 moreimpl Copy for StdOutLoggerMode
Source§impl Debug for StdOutLoggerMode
impl Debug for StdOutLoggerMode
Source§impl PartialEq for StdOutLoggerMode
impl PartialEq for StdOutLoggerMode
impl StructuralPartialEq for StdOutLoggerMode
Auto Trait Implementations§
impl Freeze for StdOutLoggerMode
impl RefUnwindSafe for StdOutLoggerMode
impl Send for StdOutLoggerMode
impl Sync for StdOutLoggerMode
impl Unpin for StdOutLoggerMode
impl UnsafeUnpin for StdOutLoggerMode
impl UnwindSafe for StdOutLoggerMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request