pub struct ServeArgs {
pub repo: RepoArgs,
pub command: Option<ServeCommand>,
pub host: Option<String>,
pub port: Option<u16>,
pub fallback: bool,
pub idle: u64,
pub deployment: Option<String>,
}Expand description
majordomus serve.
Fields§
§repo: RepoArgsWhere and how the repository is read.
command: Option<ServeCommand>status, ensure or stop; none serves.
host: Option<String>Interface to bind; without it, the one MAJORDOMUS_HTTP_HOST names on this machine,
and loopback (127.0.0.1) when that is unset
port: Option<u16>Port to bind; without it, the port this checkout derives (8741 for the primary checkout); 0 picks a free one and the address is logged on stderr
fallback: boolWhen the port is taken, bind a free one instead and log both; without this a taken port is an error
idle: u64Stop when no peer has been attached for this many seconds; 0 runs until stopped. What a server no client owns is started with
deployment: Option<String>Bind the address this deployment object declares (.ai/repo/deployments/<ID>.yaml)
instead of the local default. What a hosted process is started with; the address is
the object’s, not this command line’s
Trait Implementations§
Source§impl Args for ServeArgs
impl Args for ServeArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for ServeArgs
impl FromArgMatches for ServeArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.