Struct tlsn_prover::tls::ProverConfigBuilder
source · pub struct ProverConfigBuilder { /* private fields */ }
Expand description
Builder for ProverConfig
.
Implementations§
source§impl ProverConfigBuilder
impl ProverConfigBuilder
sourcepub fn id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Id of the notarization session.
sourcepub fn server_dns<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn server_dns<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The server DNS name.
sourcepub fn root_cert_store(&mut self, value: RootCertStore) -> &mut Self
pub fn root_cert_store(&mut self, value: RootCertStore) -> &mut Self
TLS root certificate store.
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 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
§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.