pub struct ActivityId(pub u32);Expand description
An opaque identifier of an activity, chosen by the caller.
The crate never interprets the value. It only tags impacts with it and reports it back in a
Violation. Integration code maps it to its own activity records, for
example to the start and end time points of a temporal-control network.
Tuple Fields§
§0: u32Trait Implementations§
Source§impl Clone for ActivityId
impl Clone for ActivityId
impl Copy for ActivityId
Source§impl Debug for ActivityId
impl Debug for ActivityId
Source§impl<'de> Deserialize<'de> for ActivityId
impl<'de> Deserialize<'de> for ActivityId
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
impl Eq for ActivityId
Source§impl Hash for ActivityId
impl Hash for ActivityId
Source§impl Ord for ActivityId
impl Ord for ActivityId
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ActivityId
impl PartialEq for ActivityId
Source§impl PartialOrd for ActivityId
impl PartialOrd for ActivityId
Source§impl Serialize for ActivityId
impl Serialize for ActivityId
Source§impl Slot for ActivityId
impl Slot for ActivityId
impl StructuralPartialEq for ActivityId
Auto Trait Implementations§
impl Forget for ActivityId
impl Freeze for ActivityId
impl Move for ActivityId
impl RefUnwindSafe for ActivityId
impl Send for ActivityId
impl Sync for ActivityId
impl Unpin for ActivityId
impl UnsafeUnpin for ActivityId
impl UnwindSafe for ActivityId
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