pub struct FormationLaunchOptions {
pub formation_id: FormationId,
pub project_dir: PathBuf,
pub task: Option<String>,
pub json: bool,
pub verbose: bool,
pub no_env_file: bool,
pub containment: Option<String>,
pub unconfined: bool,
pub ready_timeout: Duration,
pub stop_grace: Duration,
pub deadline: Option<SessionDeadline>,
/* private fields */
}Expand description
What a formation launch is given besides its roster.
Fields§
§formation_id: FormationIdThe id every member is launched with, minted once for this launch.
project_dir: PathBufThe roster’s project directory: the entry member’s --workdir, and every peer’s
--store-root, so every member resolves from the stores admission read.
task: Option<String>--task, passed to the entry member only.
json: bool--json, passed to the entry member only; peers always run with it.
verbose: bool--verbose, passed to the entry member only.
no_env_file: bool--no-env-file, passed to every member.
containment: Option<String>--containment <class>, passed to every member.
unconfined: boolThe roster’s own stance resolved unconfined (--unconfined, or containment: unconfined
in the global config with no --containment): every member is passed --unconfined and
resolves it against its own manifest. false passes every member
child_launch::CONTAINED_LAUNCH_FLAG instead.
ready_timeout: DurationEach member’s deadline to become ready, from its spawn. MEMBER_READY_TIMEOUT in
production.
stop_grace: DurationHow long a stopped member has after its lifeline is closed. MEMBER_STOP_GRACE in
production.
deadline: Option<SessionDeadline>--deadline: the formation’s one deadline, counted from the launcher’s start and passed to
every member as crate::session_status::INHERITED_DEADLINE_FLAG and its moment. It also
bounds every peer’s wait to become ready. None bounds nothing.
Implementations§
Source§impl FormationLaunchOptions
impl FormationLaunchOptions
Sourcepub fn new(formation_id: FormationId, project_dir: PathBuf) -> Self
pub fn new(formation_id: FormationId, project_dir: PathBuf) -> Self
Options with the production deadline and grace, and nothing passed through.
Trait Implementations§
Source§impl Clone for FormationLaunchOptions
impl Clone for FormationLaunchOptions
Auto Trait Implementations§
impl Freeze for FormationLaunchOptions
impl RefUnwindSafe for FormationLaunchOptions
impl Send for FormationLaunchOptions
impl Sync for FormationLaunchOptions
impl Unpin for FormationLaunchOptions
impl UnsafeUnpin for FormationLaunchOptions
impl UnwindSafe for FormationLaunchOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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