pub struct TraceMetadata { /* private fields */ }Implementations§
Source§impl TraceMetadata
impl TraceMetadata
pub fn new() -> Self
pub fn from(msgs: impl IntoIterator<Item = IpcMessageWithId>) -> Self
pub fn update(&self, msg: &IpcMessageWithId)
pub fn as_ipc(&self) -> Vec<IpcMessageWithId>
Sourcepub fn segments(&self) -> HashMap<Uuid, TraceSegment>
pub fn segments(&self) -> HashMap<Uuid, TraceSegment>
Returns a clone of all trace segments
Sourcepub fn segments_iter(&self) -> impl Iterator<Item = TraceSegment>
pub fn segments_iter(&self) -> impl Iterator<Item = TraceSegment>
Returns an iterator of a clone of all trace segments
Sourcepub fn get_segment(&self, id: &Uuid) -> Option<TraceSegment>
pub fn get_segment(&self, id: &Uuid) -> Option<TraceSegment>
Returns a clone of a single trace segment
pub fn remove_segment(&self, id: &Uuid)
Trait Implementations§
Source§impl Clone for TraceMetadata
impl Clone for TraceMetadata
Source§fn clone(&self) -> TraceMetadata
fn clone(&self) -> TraceMetadata
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 moreAuto Trait Implementations§
impl Freeze for TraceMetadata
impl RefUnwindSafe for TraceMetadata
impl Send for TraceMetadata
impl Sync for TraceMetadata
impl Unpin for TraceMetadata
impl UnsafeUnpin for TraceMetadata
impl UnwindSafe for TraceMetadata
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