pub struct ClientStateConfigBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> ClientStateConfigBuilder<S>
impl<S: State> ClientStateConfigBuilder<S>
Sourcepub fn build(self) -> ClientStateConfigwhere
S: IsComplete,
pub fn build(self) -> ClientStateConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn trust_level(
self,
value: TrustThreshold,
) -> ClientStateConfigBuilder<SetTrustLevel<S>>where
S::TrustLevel: IsUnset,
pub fn trust_level(
self,
value: TrustThreshold,
) -> ClientStateConfigBuilder<SetTrustLevel<S>>where
S::TrustLevel: IsUnset,
Sourcepub fn maybe_trust_level(
self,
value: Option<TrustThreshold>,
) -> ClientStateConfigBuilder<SetTrustLevel<S>>where
S::TrustLevel: IsUnset,
pub fn maybe_trust_level(
self,
value: Option<TrustThreshold>,
) -> ClientStateConfigBuilder<SetTrustLevel<S>>where
S::TrustLevel: IsUnset,
Sourcepub fn trusting_period(
self,
value: Duration,
) -> ClientStateConfigBuilder<SetTrustingPeriod<S>>where
S::TrustingPeriod: IsUnset,
pub fn trusting_period(
self,
value: Duration,
) -> ClientStateConfigBuilder<SetTrustingPeriod<S>>where
S::TrustingPeriod: IsUnset,
Sourcepub fn maybe_trusting_period(
self,
value: Option<Duration>,
) -> ClientStateConfigBuilder<SetTrustingPeriod<S>>where
S::TrustingPeriod: IsUnset,
pub fn maybe_trusting_period(
self,
value: Option<Duration>,
) -> ClientStateConfigBuilder<SetTrustingPeriod<S>>where
S::TrustingPeriod: IsUnset,
Sourcepub fn unbonding_period(
self,
value: Duration,
) -> ClientStateConfigBuilder<SetUnbondingPeriod<S>>where
S::UnbondingPeriod: IsUnset,
pub fn unbonding_period(
self,
value: Duration,
) -> ClientStateConfigBuilder<SetUnbondingPeriod<S>>where
S::UnbondingPeriod: IsUnset,
Sourcepub fn maybe_unbonding_period(
self,
value: Option<Duration>,
) -> ClientStateConfigBuilder<SetUnbondingPeriod<S>>where
S::UnbondingPeriod: IsUnset,
pub fn maybe_unbonding_period(
self,
value: Option<Duration>,
) -> ClientStateConfigBuilder<SetUnbondingPeriod<S>>where
S::UnbondingPeriod: IsUnset,
Sourcepub fn max_clock_drift(
self,
value: Duration,
) -> ClientStateConfigBuilder<SetMaxClockDrift<S>>where
S::MaxClockDrift: IsUnset,
pub fn max_clock_drift(
self,
value: Duration,
) -> ClientStateConfigBuilder<SetMaxClockDrift<S>>where
S::MaxClockDrift: IsUnset,
Sourcepub fn maybe_max_clock_drift(
self,
value: Option<Duration>,
) -> ClientStateConfigBuilder<SetMaxClockDrift<S>>where
S::MaxClockDrift: IsUnset,
pub fn maybe_max_clock_drift(
self,
value: Option<Duration>,
) -> ClientStateConfigBuilder<SetMaxClockDrift<S>>where
S::MaxClockDrift: IsUnset,
Sourcepub fn proof_specs(
self,
value: ProofSpecs,
) -> ClientStateConfigBuilder<SetProofSpecs<S>>where
S::ProofSpecs: IsUnset,
pub fn proof_specs(
self,
value: ProofSpecs,
) -> ClientStateConfigBuilder<SetProofSpecs<S>>where
S::ProofSpecs: IsUnset,
Sourcepub fn maybe_proof_specs(
self,
value: Option<ProofSpecs>,
) -> ClientStateConfigBuilder<SetProofSpecs<S>>where
S::ProofSpecs: IsUnset,
pub fn maybe_proof_specs(
self,
value: Option<ProofSpecs>,
) -> ClientStateConfigBuilder<SetProofSpecs<S>>where
S::ProofSpecs: IsUnset,
Sourcepub fn upgrade_path(
self,
value: Vec<String>,
) -> ClientStateConfigBuilder<SetUpgradePath<S>>where
S::UpgradePath: IsUnset,
pub fn upgrade_path(
self,
value: Vec<String>,
) -> ClientStateConfigBuilder<SetUpgradePath<S>>where
S::UpgradePath: IsUnset,
Sourcepub fn maybe_upgrade_path(
self,
value: Option<Vec<String>>,
) -> ClientStateConfigBuilder<SetUpgradePath<S>>where
S::UpgradePath: IsUnset,
pub fn maybe_upgrade_path(
self,
value: Option<Vec<String>>,
) -> ClientStateConfigBuilder<SetUpgradePath<S>>where
S::UpgradePath: IsUnset,
Sourcepub fn allow_update(
self,
value: AllowUpdate,
) -> ClientStateConfigBuilder<SetAllowUpdate<S>>where
S::AllowUpdate: IsUnset,
pub fn allow_update(
self,
value: AllowUpdate,
) -> ClientStateConfigBuilder<SetAllowUpdate<S>>where
S::AllowUpdate: IsUnset,
Sourcepub fn maybe_allow_update(
self,
value: Option<AllowUpdate>,
) -> ClientStateConfigBuilder<SetAllowUpdate<S>>where
S::AllowUpdate: IsUnset,
pub fn maybe_allow_update(
self,
value: Option<AllowUpdate>,
) -> ClientStateConfigBuilder<SetAllowUpdate<S>>where
S::AllowUpdate: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for ClientStateConfigBuilder<S>
impl<S> RefUnwindSafe for ClientStateConfigBuilder<S>
impl<S> Send for ClientStateConfigBuilder<S>
impl<S> Sync for ClientStateConfigBuilder<S>
impl<S> Unpin for ClientStateConfigBuilder<S>
impl<S> UnwindSafe for ClientStateConfigBuilder<S>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request