pub struct ActionMeta { /* private fields */ }Expand description
Action with additional metadata like: id.
Implementations§
Source§impl ActionMeta
impl ActionMeta
pub const ZERO: Self
pub fn zero_custom(time: Timestamp) -> Self
pub fn id(&self) -> ActionId
Sourcepub fn depth(&self) -> RecursionDepth
pub fn depth(&self) -> RecursionDepth
Recursion depth of a given action.
pub fn time(&self) -> Timestamp
pub fn sys_time(&self) -> SystemTime
pub fn time_as_nanos(&self) -> u64
pub fn duration_since_epoch(&self) -> Duration
pub fn duration_since(&self, other: &ActionMeta) -> Duration
pub fn with_action<T>(self, action: T) -> ActionWithMeta<T>
Trait Implementations§
Source§impl Clone for ActionMeta
impl Clone for ActionMeta
Source§fn clone(&self) -> ActionMeta
fn clone(&self) -> ActionMeta
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 moreSource§impl Debug for ActionMeta
impl Debug for ActionMeta
Source§impl<'de> Deserialize<'de> for ActionMeta
impl<'de> Deserialize<'de> for ActionMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for ActionMeta
impl Ord for ActionMeta
Source§fn cmp(&self, other: &ActionMeta) -> Ordering
fn cmp(&self, other: &ActionMeta) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ActionMeta
impl PartialEq for ActionMeta
Source§impl PartialOrd for ActionMeta
impl PartialOrd for ActionMeta
Source§impl Serialize for ActionMeta
impl Serialize for ActionMeta
impl Eq for ActionMeta
impl StructuralPartialEq for ActionMeta
Auto Trait Implementations§
impl Freeze for ActionMeta
impl RefUnwindSafe for ActionMeta
impl Send for ActionMeta
impl Sync for ActionMeta
impl Unpin for ActionMeta
impl UnwindSafe for ActionMeta
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