Trait kipa_lib::creators::Creator [−][src]
pub trait Creator { type Parameters; fn get_clap_args<'a, 'b>() -> Vec<Arg<'a, 'b>> { ... } fn create(
_parameters: Self::Parameters,
_args: &ArgMatches,
_log: Logger
) -> InternalResult<Box<Self>> { ... } }
Implementors can be constructed from clap
arguments
Associated Types
type Parameters
Parameters needed for creating the type
Provided Methods
fn get_clap_args<'a, 'b>() -> Vec<Arg<'a, 'b>>
Add clap
arguments to the command line options
fn create(
_parameters: Self::Parameters,
_args: &ArgMatches,
_log: Logger
) -> InternalResult<Box<Self>>
_parameters: Self::Parameters,
_args: &ArgMatches,
_log: Logger
) -> InternalResult<Box<Self>>
Create the type, given clap
arguments and parameters
Implementors
impl Creator for LocalAddressParams type Parameters = ();
impl Creator for DataTransformer type Parameters = ();
impl Creator for Client type Parameters = Arc<DataTransformer>;
impl Creator for Server type Parameters = (Arc<MessageHandler>, Arc<DataTransformer>, Node);
impl Creator for LocalServer type Parameters = (Arc<MessageHandler>, Arc<DataTransformer>);
impl Creator for LocalClient type Parameters = Arc<DataTransformer>;
impl Creator for MessageHandler type Parameters = (Arc<PayloadHandler>, Node, Arc<Client>);
impl Creator for KeySpaceManager type Parameters = Node;
impl Creator for NeighboursStore type Parameters = (Key, Arc<KeySpaceManager>);
impl Creator for PayloadHandler type Parameters = Node;