pub struct LocalBufferSink {
buffer: Arc<CircularBuffer<FlightRecorderEvent>>,
}Expand description
Sink that stores events in an in-memory CircularBuffer.
Fields§
§buffer: Arc<CircularBuffer<FlightRecorderEvent>>Implementations§
Source§impl LocalBufferSink
impl LocalBufferSink
Sourcepub fn new(buffer: Arc<CircularBuffer<FlightRecorderEvent>>) -> Self
pub fn new(buffer: Arc<CircularBuffer<FlightRecorderEvent>>) -> Self
Create a sink that pushes into buffer.
Trait Implementations§
Source§impl FlightRecorderSink for LocalBufferSink
impl FlightRecorderSink for LocalBufferSink
Source§fn push(&self, event: FlightRecorderEvent)
fn push(&self, event: FlightRecorderEvent)
Accept one captured event.
Auto Trait Implementations§
impl Freeze for LocalBufferSink
impl RefUnwindSafe for LocalBufferSink
impl Send for LocalBufferSink
impl Sync for LocalBufferSink
impl Unpin for LocalBufferSink
impl UnsafeUnpin for LocalBufferSink
impl UnwindSafe for LocalBufferSink
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
§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