Trait websocat::SpecifierClass[][src]

pub trait SpecifierClass {
    fn get_name(&self) -> &'static str;
fn get_prefixes(&self) -> Vec<&'static str>;
fn help(&self) -> &'static str;
fn construct(
        &self,
        full: &str,
        just_arg: &str
    ) -> Result<Rc<Specifier>, Box<Error>>; }

A trait for a each specified type's accompanying object

Don't forget to register each instance at the list_of_all_specifier_classes macro.

Required Methods

The primary name of the class

Names to match command line parameters against, with a : colon if needed

--long-help snippet about this specifier

Given the command line text, construct the specifier

Full str is like ws://qwe in ws://qwe

Just arg is like 127.0.0.1:8080 in tcp-l:127.0.0.1:8080

Implementors