pub struct WorkContextHash([u8; 32]);Expand description
SHA-256 digest of (base_sim_config, TournamentPayload, sentinel_config), serialized as lowercase hex.
Tuple Fields§
§0: [u8; 32]Implementations§
Source§impl WorkContextHash
impl WorkContextHash
Sourcepub const fn from_bytes(bytes: [u8; 32]) -> Self
pub const fn from_bytes(bytes: [u8; 32]) -> Self
Wrap raw digest bytes.
Sourcepub fn from_hex(s: &str) -> Result<Self, WorkContextHashParseError>
pub fn from_hex(s: &str) -> Result<Self, WorkContextHashParseError>
Parse from a lowercase or uppercase hex string.
§Errors
Returns WorkContextHashParseError when the input is not hex or has the wrong length.
Trait Implementations§
Source§impl Clone for WorkContextHash
impl Clone for WorkContextHash
Source§fn clone(&self) -> WorkContextHash
fn clone(&self) -> WorkContextHash
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 WorkContextHash
impl Debug for WorkContextHash
Source§impl<'de> Deserialize<'de> for WorkContextHash
impl<'de> Deserialize<'de> for WorkContextHash
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 Display for WorkContextHash
impl Display for WorkContextHash
Source§impl Hash for WorkContextHash
impl Hash for WorkContextHash
Source§impl PartialEq for WorkContextHash
impl PartialEq for WorkContextHash
Source§impl Serialize for WorkContextHash
impl Serialize for WorkContextHash
Source§impl TryFrom<String> for WorkContextHash
impl TryFrom<String> for WorkContextHash
impl Copy for WorkContextHash
impl Eq for WorkContextHash
impl StructuralPartialEq for WorkContextHash
Auto Trait Implementations§
impl Freeze for WorkContextHash
impl RefUnwindSafe for WorkContextHash
impl Send for WorkContextHash
impl Sync for WorkContextHash
impl Unpin for WorkContextHash
impl UnsafeUnpin for WorkContextHash
impl UnwindSafe for WorkContextHash
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SpecConfig for T
impl<T> SpecConfig for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more