pub struct CryptumBuilder { /* private fields */ }Expand description
Builder for configuring and creating Cryptum instances
Implementations§
Source§impl CryptumBuilder
impl CryptumBuilder
Sourcepub fn cipher_suite(self, cipher_suite: CipherSuite) -> Self
pub fn cipher_suite(self, cipher_suite: CipherSuite) -> Self
Set the cipher suite
Sourcepub fn rsa_key_size(self, key_size: RsaKeySize) -> Self
pub fn rsa_key_size(self, key_size: RsaKeySize) -> Self
Set the RSA key size
Sourcepub fn memory_limit_mb(self, limit: usize) -> Self
pub fn memory_limit_mb(self, limit: usize) -> Self
Set the memory limit
Sourcepub fn hardware_acceleration(self, enable: bool) -> Self
pub fn hardware_acceleration(self, enable: bool) -> Self
Enable or disable hardware acceleration
Sourcepub fn stream_chunk_size(self, size: usize) -> Self
pub fn stream_chunk_size(self, size: usize) -> Self
Set the stream chunk size
Sourcepub fn secure_memory(self, enable: bool) -> Self
pub fn secure_memory(self, enable: bool) -> Self
Enable or disable secure memory
Trait Implementations§
Source§impl Debug for CryptumBuilder
impl Debug for CryptumBuilder
Source§impl Default for CryptumBuilder
impl Default for CryptumBuilder
Source§fn default() -> CryptumBuilder
fn default() -> CryptumBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CryptumBuilder
impl RefUnwindSafe for CryptumBuilder
impl Send for CryptumBuilder
impl Sync for CryptumBuilder
impl Unpin for CryptumBuilder
impl UnwindSafe for CryptumBuilder
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> 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