hermes-cli-components 0.1.0

Implementation of an IBC Relayer in Rust, as a library
Documentation
1
2
3
4
5
6
7
8
9
10
use core::marker::PhantomData;

use cgp::prelude::*;

#[derive_component(ArgParserComponent, ArgParser<App>)]
pub trait CanParseArg<Args, Tag>: HasErrorType {
    type Parsed: Async;

    fn parse_arg(&self, args: &Args, tag: PhantomData<Tag>) -> Result<Self::Parsed, Self::Error>;
}