Entrypoint

Trait Entrypoint 

pub trait Entrypoint {
    // Required methods
    fn client_main<W: WindowsApi + 'static>(
        &mut self,
        windows_api: &W,
        host: String,
        username: Option<String>,
        port: Option<u16>,
        config: &ClientConfig,
    ) -> impl Future<Output = ()> + Send;
    fn daemon_main<W: WindowsApi + Clone + 'static>(
        &mut self,
        windows_api: &W,
        hosts: Vec<String>,
        username: Option<String>,
        port: Option<u16>,
        config: &DaemonConfig,
        clusters: &[Cluster],
        debug: bool,
    ) -> impl Future<Output = ()> + Send;
    fn main<W: WindowsApi + 'static>(
        &mut self,
        windows_api: &W,
        config_path: &str,
        config: &Config,
        args: Args,
    );
}
Expand description

Trait defining the entrypoint functions of the different subcommands

Required Methods§

fn client_main<W: WindowsApi + 'static>( &mut self, windows_api: &W, host: String, username: Option<String>, port: Option<u16>, config: &ClientConfig, ) -> impl Future<Output = ()> + Send

Entrypoint for the client subcommand

fn daemon_main<W: WindowsApi + Clone + 'static>( &mut self, windows_api: &W, hosts: Vec<String>, username: Option<String>, port: Option<u16>, config: &DaemonConfig, clusters: &[Cluster], debug: bool, ) -> impl Future<Output = ()> + Send

Entrypoint for the daemon subcommand

fn main<W: WindowsApi + 'static>( &mut self, windows_api: &W, config_path: &str, config: &Config, args: Args, )

Entrypoint for the main command

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.

Implementors§