pub struct SsssConfig { /* private fields */ }Expand description
Configuration used to drive the gen_shares function.
§Notes
The default configuration will specify 5 shares with a
threshold of 3. The maximum secret size is u16::MAX (65536)
Implementations§
Source§impl SsssConfig
impl SsssConfig
Sourcepub fn builder() -> SsssConfigBuilder
pub fn builder() -> SsssConfigBuilder
Create an instance of SsssConfig using the builder syntax
Trait Implementations§
Source§impl Clone for SsssConfig
impl Clone for SsssConfig
Source§fn clone(&self) -> SsssConfig
fn clone(&self) -> SsssConfig
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 SsssConfig
impl Debug for SsssConfig
Source§impl Default for SsssConfig
impl Default for SsssConfig
Source§impl<'de> Deserialize<'de> for SsssConfig
impl<'de> Deserialize<'de> for SsssConfig
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 Serialize for SsssConfig
impl Serialize for SsssConfig
impl Copy for SsssConfig
Auto Trait Implementations§
impl Freeze for SsssConfig
impl RefUnwindSafe for SsssConfig
impl Send for SsssConfig
impl Sync for SsssConfig
impl Unpin for SsssConfig
impl UnwindSafe for SsssConfig
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