Skip to main content

Entrypoint

Trait Entrypoint 

pub trait Entrypoint {
    // Required methods
    fn client_main<W: WindowsApi + Clone + 'static>(
        &mut self,
        windows_api: &W,
        host: String,
        username: Option<String>,
        port: Option<u16>,
        daemon_channel: Option<String>,
        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, C: ConfigManager + 'static>(
        &mut self,
        windows_api: &W,
        config_manager: &C,
        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 + Clone + 'static>( &mut self, windows_api: &W, host: String, username: Option<String>, port: Option<u16>, daemon_channel: Option<String>, 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, C: ConfigManager + 'static>( &mut self, windows_api: &W, config_manager: &C, 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".

Implementors§