Struct HermesApp

Source
pub struct HermesApp {
    pub config_path: PathBuf,
    pub runtime: HermesRuntime,
}

Fields§

§config_path: PathBuf§runtime: HermesRuntime

Trait Implementations§

Source§

impl CommandRunner<HermesApp> for ChannelCommands

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for ChannelCreate

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for ClearCommands

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for ClientCommands

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for ClientUpdate

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for ConnectionCommands

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for ConnectionCreate

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for HermesCommand

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for KeysAddCmd

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for KeysBalanceCmd

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for KeysCmd

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for KeysDeleteCmd

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for KeysListCmd

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for PacketCommands

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for PacketsClear

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for QueryChannels

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for QueryClients

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for QueryCommands

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for QueryConnection

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CommandRunner<HermesApp> for QueryConnections

Source§

async fn run(&self, app: &HermesApp) -> Result<Output>

Source§

impl CreateClientOptionsParser<HermesApp, CreateClientArgs, 0, 1> for HermesAppComponents

Source§

async fn parse_create_client_options( _app: &HermesApp, args: &CreateClientArgs, target_chain: &CosmosChain, counterparty_chain: &CosmosChain, ) -> Result<((), Settings), Error>

Source§

impl HasComponents for HermesApp

Source§

impl HasField<(Char<'c'>, Char<'o'>, Char<'n'>, Char<'f'>, Char<'i'>, Char<'g'>, Char<'_'>, Char<'p'>, Char<'a'>, Char<'t'>, Char<'h'>)> for HermesApp

Source§

type Field = PathBuf

Source§

fn get_field( &self, key: PhantomData<(Char<'c'>, Char<'o'>, Char<'n'>, Char<'f'>, Char<'i'>, Char<'g'>, Char<'_'>, Char<'p'>, Char<'a'>, Char<'t'>, Char<'h'>)>, ) -> &Self::Field

Source§

impl HasField<(Char<'r'>, Char<'u'>, Char<'n'>, Char<'t'>, Char<'i'>, Char<'m'>, Char<'e'>)> for HermesApp

Source§

type Field = HermesRuntime

Source§

fn get_field( &self, key: PhantomData<(Char<'r'>, Char<'u'>, Char<'n'>, Char<'t'>, Char<'i'>, Char<'m'>, Char<'e'>)>, ) -> &Self::Field

Source§

impl CanUseHermesApp for HermesApp

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<App, Args> CanLoadBootstrap<Args> for App

Source§

async fn load_bootstrap( &self, args: &Args, ) -> Result<<App as HasBootstrapType>::Bootstrap, <App as HasErrorType>::Error>

Source§

impl<App> CanLoadBuilder for App

Source§

async fn load_builder( &self, ) -> Result<<App as HasBuilderType>::Builder, <App as HasErrorType>::Error>

Source§

impl<App> CanLoadConfig for App

Source§

async fn load_config( &self, ) -> Result<<App as HasConfigType>::Config, <App as HasErrorType>::Error>

Source§

impl<App, Args, Tag> CanParseArg<Args, Tag> for App
where App: HasErrorType + HasComponents, <App as HasComponents>::Components: ArgParser<App, Args, Tag>,

Source§

type Parsed = <<App as HasComponents>::Components as ArgParser<App, Args, Tag>>::Parsed

Source§

fn parse_arg( &self, args: &Args, tag: PhantomData<Tag>, ) -> Result<<App as CanParseArg<Args, Tag>>::Parsed, <App as HasErrorType>::Error>

Source§

impl<Context, E> CanRaiseError<E> for Context
where Context: HasErrorType + HasComponents, <Context as HasComponents>::Components: ErrorRaiser<Context, E>,

Source§

fn raise_error(e: E) -> <Context as HasErrorType>::Error

Source§

impl<App, Args> CanRunCommand<Args> for App

Source§

async fn run_command( &self, args: &Args, ) -> Result<<App as HasOutputType>::Output, <App as HasErrorType>::Error>

Source§

impl<Context, Detail, Error> CanWrapError<Detail> for Context
where Context: HasErrorType<Error = Error> + CanRaiseError<WrapError<Detail, Error>>,

Source§

fn wrap_error( detail: Detail, error: <Context as HasErrorType>::Error, ) -> <Context as HasErrorType>::Error

Source§

impl<App> CanWriteConfig for App

Source§

async fn write_config( &self, config: &<App as HasConfigType>::Config, ) -> Result<(), <App as HasErrorType>::Error>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<App> HasAnyCounterparty for App

Source§

impl<App> HasBootstrapType for App

Source§

impl<App> HasBuilderType for App

Source§

impl<App> HasConfigPath for App

Source§

impl<App> HasConfigType for App

Source§

impl<Context> HasErrorType for Context
where Context: HasComponents, <Context as HasComponents>::Components: ProvideErrorType<Context>,

Source§

type Error = <<Context as HasComponents>::Components as ProvideErrorType<Context>>::Error

The Error associated type is also required to implement Debug.

This is to allow Self::Error to be used in calls like .unwrap(), as well as for simpler error logging.

Source§

impl<Context> HasGlobalLogger for Context
where Context: HasLoggerType + HasComponents, <Context as HasComponents>::Components: GlobalLoggerGetter<Context>,

Source§

fn global_logger() -> &'static <Context as HasLoggerType>::Logger

Source§

impl<Context> HasLogger for Context
where Context: HasLoggerType + HasComponents, <Context as HasComponents>::Components: LoggerGetter<Context>,

Source§

fn logger(&self) -> &<Context as HasLoggerType>::Logger

Source§

impl<Context> HasLoggerType for Context
where Context: Async + HasComponents, <Context as HasComponents>::Components: ProvideLoggerType<Context>,

Source§

type Logger = <<Context as HasComponents>::Components as ProvideLoggerType<Context>>::Logger

Source§

impl<App> HasOutputType for App

Source§

impl<Context> HasRetryableError for Context
where Context: HasErrorType + HasComponents, <Context as HasComponents>::Components: ProvideRetryableError<Context>,

Source§

impl<Context> HasRuntime for Context
where Context: HasRuntimeType + HasComponents, <Context as HasComponents>::Components: RuntimeGetter<Context>,

Source§

fn runtime(&self) -> &<Context as HasRuntimeType>::Runtime

Source§

impl<Context> HasRuntimeType for Context
where Context: Async + HasComponents, <Context as HasComponents>::Components: ProvideRuntimeType<Context>,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<A> Async for A
where A: Send + Sync + 'static,

Source§

impl<T, C> Convertible<C> for T
where T: TryFrom<C> + Into<C>,

Source§

impl<T> JsonSchemaMaybe for T