pub struct DaemonArgs {
pub coordinator: Option<String>,
pub machine: Option<String>,
pub port: Option<u16>,
pub peer_port: u16,
pub peer_bind: Option<String>,
pub labels: Vec<String>,
pub runtime_dir: Option<PathBuf>,
pub working_dir: Option<PathBuf>,
pub token: Option<String>,
pub token_file: Option<PathBuf>,
pub pidfile: Option<PathBuf>,
pub announce: bool,
}Expand description
astrs daemon arguments (internal — spawned by astrs up, never run
by hand in ordinary use).
Fields§
§coordinator: Option<String>The coordinator address to register with.
machine: Option<String>This daemon’s machine name (defaults to the local hostname).
port: Option<u16>The loopback TCP port node processes may dial as a UDS fallback
(§4.2); 0 binds a free one, and omitting it opens no TCP port.
peer_port: u16The TCP port other daemons dial for cross-machine data routes
(§6.4); 0 binds a free one. Only opened when --coordinator is
given, because a daemon nobody was told about has opened a hole for
nothing.
peer_bind: Option<String>The interface the peer listener binds; defaults to loopback, exactly
as the coordinator’s own --bind does and for the same §16 reason.
labels: Vec<String>A placement label, repeatable: --label zone=front --label gpu=yes
(§8.3 deploy).
runtime_dir: Option<PathBuf>Where the node socket and captured logs live (§24.2).
working_dir: Option<PathBuf>The directory node paths resolve against.
token: Option<String>The 64-hex cluster token every node must present (§16).
token_file: Option<PathBuf>Read that token from this file instead of
<working-dir>/.astrs-token.
pidfile: Option<PathBuf>Write this process’s pid here once the listeners are bound, so
astrs down and astrs status can find it.
announce: boolPrint the bound addresses as one JSON line on stdout once ready —
how astrs up learns a --port 0 daemon’s real port.
Trait Implementations§
Source§impl Args for DaemonArgs
impl Args for DaemonArgs
Source§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 Debug for DaemonArgs
impl Debug for DaemonArgs
Source§impl FromArgMatches for DaemonArgs
impl FromArgMatches for DaemonArgs
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.Auto Trait Implementations§
impl Freeze for DaemonArgs
impl RefUnwindSafe for DaemonArgs
impl Send for DaemonArgs
impl Sync for DaemonArgs
impl Unpin for DaemonArgs
impl UnsafeUnpin for DaemonArgs
impl UnwindSafe for DaemonArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more