pub struct FormationMarker {
pub project_dir: PathBuf,
pub launcher_pid: u32,
pub launcher_start: String,
}Expand description
Who launched a formation, from which project: the contents of FORMATION_MARKER_FILE.
The launcher writes it once, before the first peer’s directory is made, and nothing rewrites it. Retention reads it to decide whether a formation directory is this project’s to remove and whether the launcher that made it is still running; a directory without one is never removed.
Fields§
§project_dir: PathBufThe roster’s project directory, canonicalized when the launcher could, as given otherwise.
launcher_pid: u32The launcher’s pid.
launcher_start: StringThe launcher’s start token, read as crate::running::process_start_token reads it, or
"" when it could not be read.
Implementations§
Trait Implementations§
Source§impl Clone for FormationMarker
impl Clone for FormationMarker
Source§impl Debug for FormationMarker
impl Debug for FormationMarker
Source§impl<'de> Deserialize<'de> for FormationMarker
impl<'de> Deserialize<'de> for FormationMarker
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FormationMarker
Source§impl PartialEq for FormationMarker
impl PartialEq for FormationMarker
Source§impl Serialize for FormationMarker
impl Serialize for FormationMarker
impl StructuralPartialEq for FormationMarker
Auto Trait Implementations§
impl Forget for FormationMarker
impl Freeze for FormationMarker
impl Move for FormationMarker
impl RefUnwindSafe for FormationMarker
impl Send for FormationMarker
impl Sync for FormationMarker
impl Unpin for FormationMarker
impl UnsafeUnpin for FormationMarker
impl UnwindSafe for FormationMarker
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
Converts
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> ⓘ
Converts
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