Trait fuchsia_inspect_contrib::nodes::NodeExt
source · pub trait NodeExt {
// Required methods
fn create_time(&self, name: impl Into<StringReference>) -> TimeProperty;
fn create_time_at<'b>(
&self,
name: impl Into<StringReference>,
timestamp: Time
) -> TimeProperty;
fn record_time(&self, name: impl Into<StringReference>);
}
Expand description
Extension trait that allows to manage timestamp properties.
Required Methods§
sourcefn create_time(&self, name: impl Into<StringReference>) -> TimeProperty
fn create_time(&self, name: impl Into<StringReference>) -> TimeProperty
Creates a new property holding the current monotonic timestamp.
sourcefn create_time_at<'b>(
&self,
name: impl Into<StringReference>,
timestamp: Time
) -> TimeProperty
fn create_time_at<'b>( &self, name: impl Into<StringReference>, timestamp: Time ) -> TimeProperty
Creates a new property holding the given timestamp.
sourcefn record_time(&self, name: impl Into<StringReference>)
fn record_time(&self, name: impl Into<StringReference>)
Records a new property holding the current monotonic timestamp.
Object Safety§
This trait is not object safe.