[][src]Struct sss_rs::sharer::SharerBuilder

pub struct SharerBuilder { /* fields omitted */ }

The builder struct to give the Sharer struct builder style construction. Defaults: - shares_required: 3 - shares_to_create: 3

Methods

impl SharerBuilder[src]

pub fn build(self) -> Result<Sharer, Box<dyn Error>>[src]

Builds and returns the Sharer struct

pub fn shares_required(self, shares_required: u8) -> Self[src]

Sets the number of shares required for secret reconstruction Default: 3 If set greater than shares_to_create, will set shares_to_create equal to it. Must be >= 2, else $build() will fail

pub fn shares_to_create(self, shares_to_create: u8) -> Self[src]

Sets the number of shares to create. Default: 3 If set less than shares_to_create, will set shares_required equal to it. Must be >= 2 AND >= $shares_required, else $build() will fail

Trait Implementations

impl Default for SharerBuilder[src]

impl Debug for SharerBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Error = !

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.

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

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

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