pub struct ActivityId(/* private fields */);Expand description
Stable identity of a production activity.
Implementations§
Source§impl ActivityId
impl ActivityId
Sourcepub const fn from_bytes(bytes: [u8; 16]) -> Self
pub const fn from_bytes(bytes: [u8; 16]) -> Self
Creates an identity from its stable 16-byte representation.
Sourcepub const fn into_bytes(self) -> [u8; 16]
pub const fn into_bytes(self) -> [u8; 16]
Returns the stable 16-byte representation.
Trait Implementations§
Source§impl Clone for ActivityId
impl Clone for ActivityId
Source§fn clone(&self) -> ActivityId
fn clone(&self) -> ActivityId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ActivityId
Source§impl Debug for ActivityId
impl Debug for ActivityId
Source§impl Default for ActivityId
impl Default for ActivityId
Source§impl Display for ActivityId
impl Display for ActivityId
impl Eq for ActivityId
Source§impl FromStr for ActivityId
impl FromStr for ActivityId
Source§impl Hash for ActivityId
impl Hash for ActivityId
Source§impl Ord for ActivityId
impl Ord for ActivityId
Source§fn cmp(&self, other: &ActivityId) -> Ordering
fn cmp(&self, other: &ActivityId) -> Ordering
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
Source§impl PartialEq for ActivityId
impl PartialEq for ActivityId
Source§fn eq(&self, other: &ActivityId) -> bool
fn eq(&self, other: &ActivityId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ActivityId
impl PartialOrd for ActivityId
impl StructuralPartialEq for ActivityId
Auto Trait Implementations§
impl Freeze 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