pub struct CreateClientArgs {
pub target_chain_id: String,
pub counterparty_chain_id: String,
pub clock_drift: Option<Duration>,
pub trusting_period: Option<Duration>,
pub trust_threshold: Option<TrustThreshold>,
}Fields§
§target_chain_id: StringIdentifier of the chain that hosts the client
counterparty_chain_id: StringIdentifier of the chain targeted by the client
clock_drift: Option<Duration>The maximum allowed clock drift for this client.
The clock drift is a correction parameter. It helps deal with clocks that are only approximately synchronized between the source and destination chains of this client. The destination chain for this client uses the clock drift parameter when deciding to accept or reject a new header (originating from the source chain) for this client. If this option is not specified, a suitable clock drift value is derived from the chain configurations.
trusting_period: Option<Duration>Override the trusting period specified in the config.
The trusting period specifies how long a validator set is trusted for (must be shorter than the chain’s unbonding period).
trust_threshold: Option<TrustThreshold>Override the trust threshold specified in the configuration.
The trust threshold defines what fraction of the total voting power of a known and trusted validator set is sufficient for a commit to be accepted going forward.
Trait Implementations§
Source§impl Args for CreateClientArgs
impl Args for CreateClientArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§impl CommandFactory for CreateClientArgs
impl CommandFactory for CreateClientArgs
Source§impl CreateClientOptionsParser<HermesApp, CreateClientArgs, 0, 1> for HermesAppComponents
impl CreateClientOptionsParser<HermesApp, CreateClientArgs, 0, 1> for HermesAppComponents
async fn parse_create_client_options( _app: &HermesApp, args: &CreateClientArgs, target_chain: &CosmosChain, counterparty_chain: &CosmosChain, ) -> Result<((), Settings), Error>
Source§impl Debug for CreateClientArgs
impl Debug for CreateClientArgs
Source§impl FromArgMatches for CreateClientArgs
impl FromArgMatches for CreateClientArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl HasField<(Char<'c'>, Char<'l'>, Char<'o'>, Char<'c'>, Char<'k'>, Char<'_'>, Char<'d'>, Char<'r'>, Char<'i'>, Char<'f'>, Char<'t'>)> for CreateClientArgs
impl HasField<(Char<'c'>, Char<'l'>, Char<'o'>, Char<'c'>, Char<'k'>, Char<'_'>, Char<'d'>, Char<'r'>, Char<'i'>, Char<'f'>, Char<'t'>)> for CreateClientArgs
Source§impl HasField<(Char<'c'>, Char<'o'>, Char<'u'>, Char<'n'>, Char<'t'>, Char<'e'>, Char<'r'>, Char<'p'>, Char<'a'>, Char<'r'>, Char<'t'>, Char<'y'>, Char<'_'>, Char<'c'>, Char<'h'>, Char<'a'>, Char<'i'>, Char<'n'>, Char<'_'>, Char<'i'>, Char<'d'>)> for CreateClientArgs
impl HasField<(Char<'c'>, Char<'o'>, Char<'u'>, Char<'n'>, Char<'t'>, Char<'e'>, Char<'r'>, Char<'p'>, Char<'a'>, Char<'r'>, Char<'t'>, Char<'y'>, Char<'_'>, Char<'c'>, Char<'h'>, Char<'a'>, Char<'i'>, Char<'n'>, Char<'_'>, Char<'i'>, Char<'d'>)> for CreateClientArgs
type Field = String
fn get_field( &self, key: PhantomData<(Char<'c'>, Char<'o'>, Char<'u'>, Char<'n'>, Char<'t'>, Char<'e'>, Char<'r'>, Char<'p'>, Char<'a'>, Char<'r'>, Char<'t'>, Char<'y'>, Char<'_'>, Char<'c'>, Char<'h'>, Char<'a'>, Char<'i'>, Char<'n'>, Char<'_'>, Char<'i'>, Char<'d'>)>, ) -> &Self::Field
Source§impl HasField<(Char<'t'>, Char<'a'>, Char<'r'>, Char<'g'>, Char<'e'>, Char<'t'>, Char<'_'>, Char<'c'>, Char<'h'>, Char<'a'>, Char<'i'>, Char<'n'>, Char<'_'>, Char<'i'>, Char<'d'>)> for CreateClientArgs
impl HasField<(Char<'t'>, Char<'a'>, Char<'r'>, Char<'g'>, Char<'e'>, Char<'t'>, Char<'_'>, Char<'c'>, Char<'h'>, Char<'a'>, Char<'i'>, Char<'n'>, Char<'_'>, Char<'i'>, Char<'d'>)> for CreateClientArgs
Source§impl HasField<(Char<'t'>, Char<'r'>, Char<'u'>, Char<'s'>, Char<'t'>, Char<'_'>, Char<'t'>, Char<'h'>, Char<'r'>, Char<'e'>, Char<'s'>, Char<'h'>, Char<'o'>, Char<'l'>, Char<'d'>)> for CreateClientArgs
impl HasField<(Char<'t'>, Char<'r'>, Char<'u'>, Char<'s'>, Char<'t'>, Char<'_'>, Char<'t'>, Char<'h'>, Char<'r'>, Char<'e'>, Char<'s'>, Char<'h'>, Char<'o'>, Char<'l'>, Char<'d'>)> for CreateClientArgs
Source§impl HasField<(Char<'t'>, Char<'r'>, Char<'u'>, Char<'s'>, Char<'t'>, Char<'i'>, Char<'n'>, Char<'g'>, Char<'_'>, Char<'p'>, Char<'e'>, Char<'r'>, Char<'i'>, Char<'o'>, Char<'d'>)> for CreateClientArgs
impl HasField<(Char<'t'>, Char<'r'>, Char<'u'>, Char<'s'>, Char<'t'>, Char<'i'>, Char<'n'>, Char<'g'>, Char<'_'>, Char<'p'>, Char<'e'>, Char<'r'>, Char<'i'>, Char<'o'>, Char<'d'>)> for CreateClientArgs
Source§impl Parser for CreateClientArgs
impl Parser for CreateClientArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for CreateClientArgs
impl RefUnwindSafe for CreateClientArgs
impl Send for CreateClientArgs
impl Sync for CreateClientArgs
impl Unpin for CreateClientArgs
impl UnwindSafe for CreateClientArgs
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> 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>
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>
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 moreSource§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>
T in a tonic::Request