fedimint_cli

Trait CliOptionExt

Source
pub(crate) trait CliOptionExt<O> {
    // Required method
    fn ok_or_cli_msg(self, msg: impl Into<String>) -> Result<O, CliError>;
}
Expand description

Extension trait to make turning Options into CliError/CliOutputResult easier

Required Methods§

Source

fn ok_or_cli_msg(self, msg: impl Into<String>) -> Result<O, CliError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<O> CliOptionExt<O> for Option<O>

Source§

fn ok_or_cli_msg(self, msg: impl Into<String>) -> Result<O, CliError>

Implementors§