pub struct RecordedGrind {
pub protocol: &'static str,
pub label: &'static str,
pub bits: usize,
}Expand description
One proof-of-work step read back out of an interaction pattern.
protocol is the name that protocol binds into its transcript seed.
That is what makes label unambiguous, since four crates label a step "query_pow".
Fields§
§protocol: &'static strProtocol name bound into the transcript seed the step was read from.
label: &'static strLabel the step carries.
bits: usizeDifficulty in bits the step demands.
Implementations§
Trait Implementations§
Source§impl Clone for RecordedGrind
impl Clone for RecordedGrind
impl Copy for RecordedGrind
Source§impl Debug for RecordedGrind
impl Debug for RecordedGrind
impl Eq for RecordedGrind
Source§impl PartialEq for RecordedGrind
impl PartialEq for RecordedGrind
impl StructuralPartialEq for RecordedGrind
Auto Trait Implementations§
impl Freeze for RecordedGrind
impl RefUnwindSafe for RecordedGrind
impl Send for RecordedGrind
impl Sync for RecordedGrind
impl Unpin for RecordedGrind
impl UnsafeUnpin for RecordedGrind
impl UnwindSafe for RecordedGrind
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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