pub struct TraceEventSchema {
pub name: String,
pub fields: Vec<TraceEventField>,
}Fields§
§name: String§fields: Vec<TraceEventField>Implementations§
Source§impl TraceEventSchema
impl TraceEventSchema
pub fn from_ipc(msg: TraceEventSchema) -> Self
pub fn get_field(&self, field_name: &str) -> Option<&TraceEventField>
pub fn get_field_mut( &mut self, field_name: &str, ) -> Option<&mut TraceEventField>
pub fn metadata(&self) -> impl Iterator<Item = &TraceEventFieldMetadata>
Trait Implementations§
Source§impl Clone for TraceEventSchema
impl Clone for TraceEventSchema
Source§fn clone(&self) -> TraceEventSchema
fn clone(&self) -> TraceEventSchema
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 TraceEventSchema
impl RefUnwindSafe for TraceEventSchema
impl Send for TraceEventSchema
impl Sync for TraceEventSchema
impl Unpin for TraceEventSchema
impl UnsafeUnpin for TraceEventSchema
impl UnwindSafe for TraceEventSchema
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