pub struct ChromeEventBuilder { /* private fields */ }Expand description
Builder for ChromeEvent.
Implementations§
Source§impl ChromeEventBuilder
impl ChromeEventBuilder
pub fn name<VALUE: Into<Cow<'static, str>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn cat<VALUE: Into<Cow<'static, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn ph(&mut self, value: EventType) -> &mut Self
pub fn ts(&mut self, value: f64) -> &mut Self
pub fn dur(&mut self, value: Option<f64>) -> &mut Self
pub fn tts(&mut self, value: Option<f64>) -> &mut Self
pub fn id<VALUE: Into<Cow<'static, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn pid(&mut self, value: u64) -> &mut Self
pub fn tid(&mut self, value: u64) -> &mut Self
pub fn args(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn arg<VALUE>(&mut self, item: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<ChromeEvent, ChromeEventBuilderError>
pub fn build(&self) -> Result<ChromeEvent, ChromeEventBuilderError>
Trait Implementations§
Source§impl Clone for ChromeEventBuilder
impl Clone for ChromeEventBuilder
Source§fn clone(&self) -> ChromeEventBuilder
fn clone(&self) -> ChromeEventBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 ChromeEventBuilder
impl RefUnwindSafe for ChromeEventBuilder
impl Send for ChromeEventBuilder
impl Sync for ChromeEventBuilder
impl Unpin for ChromeEventBuilder
impl UnwindSafe for ChromeEventBuilder
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