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§

source

fn create_time(&self, name: impl Into<StringReference>) -> TimeProperty

Creates a new property holding the current monotonic timestamp.

source

fn create_time_at<'b>( &self, name: impl Into<StringReference>, timestamp: Time ) -> TimeProperty

Creates a new property holding the given timestamp.

source

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.

Implementations on Foreign Types§

source§

impl NodeExt for Node

source§

fn create_time(&self, name: impl Into<StringReference>) -> TimeProperty

source§

fn create_time_at<'b>( &self, name: impl Into<StringReference>, timestamp: Time ) -> TimeProperty

source§

fn record_time(&self, name: impl Into<StringReference>)

Implementors§