pub trait OptTimestamps: MaybeTimestamps + PropertiesBackend {
// Required methods
fn author_timestamp(
&self,
node: NodeId,
) -> PropertiesResult<'_, Option<i64>, Self>;
fn author_timestamp_offset(
&self,
node: NodeId,
) -> PropertiesResult<'_, Option<i16>, Self>;
fn committer_timestamp(
&self,
node: NodeId,
) -> PropertiesResult<'_, Option<i64>, Self>;
fn committer_timestamp_offset(
&self,
node: NodeId,
) -> PropertiesResult<'_, Option<i16>, Self>;
}
Expand description
Trait for backend storage of timestamp properties (either in-memory or memory-mapped)
Required Methods§
Returns None
if out of bound, Some(i64::MIN)
if the node has no author timestamp
Returns None
if out of bound, Some(i16::MIN)
if the node has no author timestamp offset
Sourcefn committer_timestamp(
&self,
node: NodeId,
) -> PropertiesResult<'_, Option<i64>, Self>
fn committer_timestamp( &self, node: NodeId, ) -> PropertiesResult<'_, Option<i64>, Self>
Returns None
if out of bound, Some(i64::MIN)
if the node has no committer timestamp
Sourcefn committer_timestamp_offset(
&self,
node: NodeId,
) -> PropertiesResult<'_, Option<i16>, Self>
fn committer_timestamp_offset( &self, node: NodeId, ) -> PropertiesResult<'_, Option<i16>, Self>
Returns None
if out of bound, Some(i16::MIN)
if the node has no committer timestamp offset
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.