pub struct MpcTlsConfig { /* private fields */ }Expand description
MPC-TLS commitment protocol configuration.
Implementations§
Source§impl MpcTlsConfig
impl MpcTlsConfig
Sourcepub fn builder() -> MpcTlsConfigBuilder
pub fn builder() -> MpcTlsConfigBuilder
Creates a new builder.
Sourcepub fn max_sent_data(&self) -> usize
pub fn max_sent_data(&self) -> usize
Returns the maximum number of bytes that can be sent.
Sourcepub fn max_sent_records(&self) -> Option<usize>
pub fn max_sent_records(&self) -> Option<usize>
Returns the maximum number of application data records that can be sent.
Sourcepub fn max_recv_data_online(&self) -> usize
pub fn max_recv_data_online(&self) -> usize
Returns the maximum number of bytes that can be decrypted online.
Sourcepub fn max_recv_data(&self) -> usize
pub fn max_recv_data(&self) -> usize
Returns the maximum number of bytes that can be received.
Sourcepub fn max_recv_records_online(&self) -> Option<usize>
pub fn max_recv_records_online(&self) -> Option<usize>
Returns the maximum number of received application data records that can be decrypted online.
Sourcepub fn defer_decryption_from_start(&self) -> bool
pub fn defer_decryption_from_start(&self) -> bool
Returns whether the deferred decryption feature is toggled on from the
start of the MPC-TLS connection.
Sourcepub fn network(&self) -> NetworkSetting
pub fn network(&self) -> NetworkSetting
Returns the network settings.
Trait Implementations§
Source§impl Clone for MpcTlsConfig
impl Clone for MpcTlsConfig
Source§fn clone(&self) -> MpcTlsConfig
fn clone(&self) -> MpcTlsConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MpcTlsConfig
impl Debug for MpcTlsConfig
Source§impl<'de> Deserialize<'de> for MpcTlsConfig
impl<'de> Deserialize<'de> for MpcTlsConfig
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 From<MpcTlsConfig> for TlsCommitProtocolConfig
impl From<MpcTlsConfig> for TlsCommitProtocolConfig
Source§fn from(config: MpcTlsConfig) -> Self
fn from(config: MpcTlsConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MpcTlsConfig
impl RefUnwindSafe for MpcTlsConfig
impl Send for MpcTlsConfig
impl Sync for MpcTlsConfig
impl Unpin for MpcTlsConfig
impl UnwindSafe for MpcTlsConfig
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
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)