Struct tlsn_prover::ProverConfigBuilder
source · pub struct ProverConfigBuilder { /* private fields */ }
Expand description
Builder for ProverConfig
.
Implementations§
source§impl ProverConfigBuilder
impl ProverConfigBuilder
sourcepub fn server_name<VALUE: Into<ServerName>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn server_name<VALUE: Into<ServerName>>( &mut self, value: VALUE, ) -> &mut Self
The server DNS name.
sourcepub fn protocol_config(&mut self, value: ProtocolConfig) -> &mut Self
pub fn protocol_config(&mut self, value: ProtocolConfig) -> &mut Self
Protocol configuration to be checked with the verifier.
sourcepub fn defer_decryption_from_start(&mut self, value: bool) -> &mut Self
pub fn defer_decryption_from_start(&mut self, value: bool) -> &mut Self
Whether the deferred decryption
feature is toggled on from the start
of the MPC-TLS connection.
See defer_decryption_from_start
in [tls_mpc::MpcTlsLeaderConfig].
sourcepub fn crypto_provider<VALUE: Into<Arc<CryptoProvider>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn crypto_provider<VALUE: Into<Arc<CryptoProvider>>>( &mut self, value: VALUE, ) -> &mut Self
Cryptography provider.
sourcepub fn build(&self) -> Result<ProverConfig, ProverConfigBuilderError>
pub fn build(&self) -> Result<ProverConfig, ProverConfigBuilderError>
Trait Implementations§
source§impl Clone for ProverConfigBuilder
impl Clone for ProverConfigBuilder
source§fn clone(&self) -> ProverConfigBuilder
fn clone(&self) -> ProverConfigBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ProverConfigBuilder
impl !RefUnwindSafe for ProverConfigBuilder
impl Send for ProverConfigBuilder
impl Sync for ProverConfigBuilder
impl Unpin for ProverConfigBuilder
impl !UnwindSafe for ProverConfigBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SpawnCompatExt for T
impl<T> SpawnCompatExt for T
§fn compat_ref(&self) -> Compat<&T>
fn compat_ref(&self) -> Compat<&T>
Wrap a reference to the executor in a
Compat
wrapper.§fn compat_mut(&mut self) -> Compat<&mut T>
fn compat_mut(&mut self) -> Compat<&mut T>
Wrap a mutable reference to the executor in a
Compat
wrapper.§impl<T> SpawnCompatExt for T
impl<T> SpawnCompatExt for T
§fn compat_ref(&self) -> Compat<&T>
fn compat_ref(&self) -> Compat<&T>
Wrap a reference to the executor in a
Compat
wrapper.§fn compat_mut(&mut self) -> Compat<&mut T>
fn compat_mut(&mut self) -> Compat<&mut T>
Wrap a mutable reference to the executor in a
Compat
wrapper.