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 (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 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
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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more