pub struct ExecutionID {
pub id: [u8; 16],
}
Expand description
A one_two_eight identifier.
Fields§
§id: [u8; 16]
The raw bytes for this identifier.
Implementations§
Source§impl ExecutionID
impl ExecutionID
Sourcepub const BOTTOM: ExecutionID
pub const BOTTOM: ExecutionID
The smallest identifier.
Sourcepub const TOP: ExecutionID
pub const TOP: ExecutionID
The largest identifier.
Sourcepub fn generate() -> Option<ExecutionID>
pub fn generate() -> Option<ExecutionID>
Generate a new identifier, failing if urandom fails.
Sourcepub fn from_human_readable(s: &str) -> Option<Self>
pub fn from_human_readable(s: &str) -> Option<Self>
Construct an identifier from its human-readable form.
Sourcepub fn human_readable(&self) -> String
pub fn human_readable(&self) -> String
Construct a string corresponding to the human-readable form of this identifier.
Sourcepub fn prefix_free_readable(&self) -> String
pub fn prefix_free_readable(&self) -> String
Return the prefix-free encoding of this identifier.
Trait Implementations§
Source§impl Clone for ExecutionID
impl Clone for ExecutionID
Source§fn clone(&self) -> ExecutionID
fn clone(&self) -> ExecutionID
Returns a copy 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 ExecutionID
impl Debug for ExecutionID
Source§impl Default for ExecutionID
impl Default for ExecutionID
Source§fn default() -> ExecutionID
fn default() -> ExecutionID
Returns the “default value” for a type. Read more
Source§impl Display for ExecutionID
impl Display for ExecutionID
Source§impl FromStr for ExecutionID
impl FromStr for ExecutionID
Source§impl Hash for ExecutionID
impl Hash for ExecutionID
Source§impl Ord for ExecutionID
impl Ord for ExecutionID
Source§fn cmp(&self, other: &ExecutionID) -> Ordering
fn cmp(&self, other: &ExecutionID) -> 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 ExecutionID
impl PartialEq for ExecutionID
Source§impl PartialOrd for ExecutionID
impl PartialOrd for ExecutionID
impl Copy for ExecutionID
impl Eq for ExecutionID
impl StructuralPartialEq for ExecutionID
Auto Trait Implementations§
impl Freeze for ExecutionID
impl RefUnwindSafe for ExecutionID
impl Send for ExecutionID
impl Sync for ExecutionID
impl Unpin for ExecutionID
impl UnwindSafe for ExecutionID
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