pub struct FlightRecorderConfig {
pub buffer_size: NonZeroUsize,
pub level: Level,
}Expand description
Configuration for the Flight Recorder system.
Fields§
§buffer_size: NonZeroUsizeMaximum number of events to retain in the circular buffer.
level: LevelMinimum tracing level to capture.
Implementations§
Source§impl FlightRecorderConfig
impl FlightRecorderConfig
Sourcepub fn new(buffer_size: NonZeroUsize, level: Level) -> Self
pub fn new(buffer_size: NonZeroUsize, level: Level) -> Self
Create a new configuration with the given buffer size and tracing level.
Trait Implementations§
Source§impl Clone for FlightRecorderConfig
impl Clone for FlightRecorderConfig
Source§fn clone(&self) -> FlightRecorderConfig
fn clone(&self) -> FlightRecorderConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 FlightRecorderConfig
impl Debug for FlightRecorderConfig
Auto Trait Implementations§
impl Freeze for FlightRecorderConfig
impl RefUnwindSafe for FlightRecorderConfig
impl Send for FlightRecorderConfig
impl Sync for FlightRecorderConfig
impl Unpin for FlightRecorderConfig
impl UnsafeUnpin for FlightRecorderConfig
impl UnwindSafe for FlightRecorderConfig
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