Skip to main content

Opts

Trait Opts 

Source
pub trait Opts {
    // Required methods
    fn name() -> &'static str;
    fn meta_addr(&self) -> MetaAddressStrategy;
}
Expand description

Accessor trait for a component’s command-line options.

Required Methods§

Source

fn name() -> &'static str

The name of the component.

Source

fn meta_addr(&self) -> MetaAddressStrategy

The address to the meta node.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§