pub struct ProvenanceMarkGenerator { /* private fields */ }Implementations§
Source§impl ProvenanceMarkGenerator
impl ProvenanceMarkGenerator
pub fn new_with_seed( res: ProvenanceMarkResolution, seed: ProvenanceSeed, ) -> Self
pub fn new_with_passphrase( res: ProvenanceMarkResolution, passphrase: &str, ) -> Self
pub fn new_using( res: ProvenanceMarkResolution, rng: &mut impl RandomNumberGenerator, ) -> Self
pub fn new_random(res: ProvenanceMarkResolution) -> Self
pub fn new( res: ProvenanceMarkResolution, seed: ProvenanceSeed, chain_id: Vec<u8>, next_seq: u32, rng_state: RngState, ) -> Result<Self>
pub fn next( &mut self, date: Date, info: Option<impl CBOREncodable>, ) -> ProvenanceMark
Trait Implementations§
Source§impl Clone for ProvenanceMarkGenerator
impl Clone for ProvenanceMarkGenerator
Source§fn clone(&self) -> ProvenanceMarkGenerator
fn clone(&self) -> ProvenanceMarkGenerator
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 ProvenanceMarkGenerator
impl Debug for ProvenanceMarkGenerator
Source§impl<'de> Deserialize<'de> for ProvenanceMarkGenerator
impl<'de> Deserialize<'de> for ProvenanceMarkGenerator
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 ProvenanceMarkGenerator
impl Display for ProvenanceMarkGenerator
Source§impl From<ProvenanceMarkGenerator> for Envelope
Available on crate feature envelope only.
impl From<ProvenanceMarkGenerator> for Envelope
Available on crate feature
envelope only.Source§fn from(generator: ProvenanceMarkGenerator) -> Self
fn from(generator: ProvenanceMarkGenerator) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProvenanceMarkGenerator
impl PartialEq for ProvenanceMarkGenerator
Source§impl Serialize for ProvenanceMarkGenerator
impl Serialize for ProvenanceMarkGenerator
Source§impl TryFrom<Envelope> for ProvenanceMarkGenerator
Available on crate feature envelope only.
impl TryFrom<Envelope> for ProvenanceMarkGenerator
Available on crate feature
envelope only.impl Eq for ProvenanceMarkGenerator
impl StructuralPartialEq for ProvenanceMarkGenerator
Auto Trait Implementations§
impl Freeze for ProvenanceMarkGenerator
impl RefUnwindSafe for ProvenanceMarkGenerator
impl Send for ProvenanceMarkGenerator
impl Sync for ProvenanceMarkGenerator
impl Unpin for ProvenanceMarkGenerator
impl UnwindSafe for ProvenanceMarkGenerator
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> EnvelopeEncodable for T
impl<T> EnvelopeEncodable for T
Source§fn into_envelope(self) -> Envelope
fn into_envelope(self) -> Envelope
Converts the value into an envelope by using its Into<Envelope>
implementation.
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