[][src]Struct koibumi_core::identity::RandomBuilder

pub struct RandomBuilder { /* fields omitted */ }

A builder for building a random identity.

Implementations

impl RandomBuilder[src]

pub fn config(&mut self, v: &Config) -> &mut Self[src]

A shortcut to set parameters from a config object.

pub fn version(&mut self, v: AddressVersion) -> &mut Self[src]

Sets the address version.

pub fn stream(&mut self, v: StreamNumber) -> &mut Self[src]

Sets the stream number.

pub fn zeros(&mut self, v: usize) -> &mut Self[src]

Sets the minimum count of leading zeros in the hash of the public keys.

pub fn features(&mut self, v: Features) -> &mut Self[src]

Sets the features.

pub fn nonce_trials_per_byte(&mut self, v: NonceTrialsPerByte) -> &mut Self[src]

Sets the nonce trials per byte.

pub fn payload_length_extra_bytes(
    &mut self,
    v: PayloadLengthExtraBytes
) -> &mut Self
[src]

Sets the payload length extra bytes.

pub fn build(&self, cancel: Arc<AtomicBool>) -> Result<Private, Error>[src]

Returns the private identity this builder represents.

Trait Implementations

impl Clone for RandomBuilder[src]

impl Debug for RandomBuilder[src]

impl Default for RandomBuilder[src]

impl Eq for RandomBuilder[src]

impl Hash for RandomBuilder[src]

impl PartialEq<RandomBuilder> for RandomBuilder[src]

impl StructuralEq for RandomBuilder[src]

impl StructuralPartialEq for RandomBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.