pub struct MpcTlsConfigBuilder { /* private fields */ }Expand description
Builder for MpcTlsConfig.
Implementations§
Source§impl MpcTlsConfigBuilder
impl MpcTlsConfigBuilder
Sourcepub fn max_sent_data(self, max_sent_data: usize) -> Self
pub fn max_sent_data(self, max_sent_data: usize) -> Self
Sets the maximum number of bytes that can be sent.
Sourcepub fn max_sent_records(self, max_sent_records: usize) -> Self
pub fn max_sent_records(self, max_sent_records: usize) -> Self
Sets the maximum number of application data records that can be sent.
Sourcepub fn max_recv_data_online(self, max_recv_data_online: usize) -> Self
pub fn max_recv_data_online(self, max_recv_data_online: usize) -> Self
Sets the maximum number of bytes that can be decrypted online.
Sourcepub fn max_recv_data(self, max_recv_data: usize) -> Self
pub fn max_recv_data(self, max_recv_data: usize) -> Self
Sets the maximum number of bytes that can be received.
Sourcepub fn max_recv_records_online(self, max_recv_records_online: usize) -> Self
pub fn max_recv_records_online(self, max_recv_records_online: usize) -> Self
Sets the maximum number of received application data records that can be decrypted online.
Sourcepub fn defer_decryption_from_start(
self,
defer_decryption_from_start: bool,
) -> Self
pub fn defer_decryption_from_start( self, defer_decryption_from_start: bool, ) -> Self
Sets whether the deferred decryption feature is toggled on from the
start of the MPC-TLS connection.
Sourcepub fn network(self, network: NetworkSetting) -> Self
pub fn network(self, network: NetworkSetting) -> Self
Sets the network settings.
Sourcepub fn build(self) -> Result<MpcTlsConfig, MpcTlsConfigError>
pub fn build(self) -> Result<MpcTlsConfig, MpcTlsConfigError>
Builds the configuration.
Trait Implementations§
Source§impl Debug for MpcTlsConfigBuilder
impl Debug for MpcTlsConfigBuilder
Source§impl Default for MpcTlsConfigBuilder
impl Default for MpcTlsConfigBuilder
Source§fn default() -> MpcTlsConfigBuilder
fn default() -> MpcTlsConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MpcTlsConfigBuilder
impl RefUnwindSafe for MpcTlsConfigBuilder
impl Send for MpcTlsConfigBuilder
impl Sync for MpcTlsConfigBuilder
impl Unpin for MpcTlsConfigBuilder
impl UnwindSafe for MpcTlsConfigBuilder
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more