pub struct LaunchTarget {
pub id: String,
pub kind: String,
pub requires_project_directory: bool,
pub availability: LaunchAvailability,
pub unavailable_reason: Option<String>,
pub runtime_missing: bool,
pub default_candidate: bool,
pub host: Option<String>,
}Expand description
One runtime template a session can run on.
Fields§
§id: String§kind: StringThe runtime kind, such as local-bare or ssh-podman.
requires_project_directory: boolWhether this target needs an existing Git directory on its machine instead of provisioning repositories into a workspace.
availability: LaunchAvailabilityWhat to tell a person when the host did not answer. This repository composes the sentence: a probe’s own message names hosts and commands and stays on the controller.
runtime_missing: boolWhether the target’s runtime (Docker, Podman) is not installed on the
daemon’s host. That is permanent for the host, unlike a host that did
not answer its last check: a picker leaves such a target out, and a
request that names it is refused with unavailable_reason.
default_candidate: boolWhether the target is a default candidate Mjolnir supplies, not one
the user wrote in config.toml. With runtime_missing it means the
user has no such runtime and never asked for the target, so a client
should not list it.
host: Option<String>How a person names the host, when a reading covers this target.
Trait Implementations§
Source§impl Clone for LaunchTarget
impl Clone for LaunchTarget
Source§impl Debug for LaunchTarget
impl Debug for LaunchTarget
Source§impl<'de> Deserialize<'de> for LaunchTarget
impl<'de> Deserialize<'de> for LaunchTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for LaunchTarget
Source§impl PartialEq for LaunchTarget
impl PartialEq for LaunchTarget
Source§impl Serialize for LaunchTarget
impl Serialize for LaunchTarget
impl StructuralPartialEq for LaunchTarget
Auto Trait Implementations§
impl Freeze for LaunchTarget
impl RefUnwindSafe for LaunchTarget
impl Send for LaunchTarget
impl Sync for LaunchTarget
impl Unpin for LaunchTarget
impl UnsafeUnpin for LaunchTarget
impl UnwindSafe for LaunchTarget
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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