pub struct KeyConfig { /* private fields */ }Implementations§
Source§impl KeyConfig
Auto-generated by derive_getters::Getters.
impl KeyConfig
Auto-generated by derive_getters::Getters.
Sourcepub fn entropy_bytes(&self) -> &usize
pub fn entropy_bytes(&self) -> &usize
Get field entropy_bytes from instance of KeyConfig.
Sourcepub fn checksum_length(&self) -> &usize
pub fn checksum_length(&self) -> &usize
Get field checksum_length from instance of KeyConfig.
Sourcepub fn checksum_algorithm(&self) -> &ChecksumAlgo
pub fn checksum_algorithm(&self) -> &ChecksumAlgo
Get field checksum_algorithm from instance of KeyConfig.
Sourcepub fn version(&self) -> &KeyVersion
pub fn version(&self) -> &KeyVersion
Get field version from instance of KeyConfig.
Source§impl KeyConfig
impl KeyConfig
pub fn new() -> Self
pub fn with_entropy(self, bytes: usize) -> Result<Self, ConfigError>
pub fn checksum(self, bytes: usize) -> Result<Self, ConfigError>
pub fn disable_checksum(self) -> Self
pub fn with_separator(self, separator: Separator) -> Self
pub fn with_version(self, version: KeyVersion) -> Self
pub fn balanced() -> Self
pub fn high_security() -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyConfig
impl RefUnwindSafe for KeyConfig
impl Send for KeyConfig
impl Sync for KeyConfig
impl Unpin for KeyConfig
impl UnwindSafe for KeyConfig
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