pub(crate) struct SinkSlot(Arc<RwLock<Arc<dyn FlightRecorderSink>>>);Expand description
Swappable slot holding the active sink, shared by the layer and the global write path.
Tuple Fields§
§0: Arc<RwLock<Arc<dyn FlightRecorderSink>>>Implementations§
Source§impl SinkSlot
impl SinkSlot
pub(crate) fn new(sink: Arc<dyn FlightRecorderSink>) -> Self
pub(crate) fn push(&self, event: FlightRecorderEvent)
pub(crate) fn set(&self, sink: Arc<dyn FlightRecorderSink>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SinkSlot
impl RefUnwindSafe for SinkSlot
impl Send for SinkSlot
impl Sync for SinkSlot
impl Unpin for SinkSlot
impl UnsafeUnpin for SinkSlot
impl UnwindSafe for SinkSlot
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