pub struct LaunchRecord {
pub pid: u32,
pub host: String,
pub port: u16,
pub base_path: String,
pub detached: bool,
/* private fields */
}Expand description
Where the Cockpit server of this data dir runs.
Fields§
§pid: u32§host: String§port: u16§base_path: String§detached: boolStarted by lean-ctx cockpit in the background (stoppable with
lean-ctx cockpit stop), not in someone’s terminal.
Implementations§
Source§impl LaunchRecord
impl LaunchRecord
Sourcepub fn of_this_process(host: &str, port: u16, base_path: &str) -> Self
pub fn of_this_process(host: &str, port: u16, base_path: &str) -> Self
The record of this process, serving host:port.
Sourcepub fn identity(&self) -> Option<&ProcessIdentity>
pub fn identity(&self) -> Option<&ProcessIdentity>
The process identity recorded at start, when the platform has one.
Sourcepub fn process_alive(&self) -> bool
pub fn process_alive(&self) -> bool
The recorded process still runs (and is the one recorded, when the
platform can tell). An update renaming the running image ((deleted),
lean-ctx.old.exe) does not make it a different process.
Trait Implementations§
Source§impl Clone for LaunchRecord
impl Clone for LaunchRecord
Source§impl Debug for LaunchRecord
impl Debug for LaunchRecord
Source§impl<'de> Deserialize<'de> for LaunchRecord
impl<'de> Deserialize<'de> for LaunchRecord
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 LaunchRecord
Source§impl PartialEq for LaunchRecord
impl PartialEq for LaunchRecord
Source§impl Serialize for LaunchRecord
impl Serialize for LaunchRecord
impl StructuralPartialEq for LaunchRecord
Auto Trait Implementations§
impl Forget for LaunchRecord
impl Freeze for LaunchRecord
impl Move for LaunchRecord
impl RefUnwindSafe for LaunchRecord
impl Send for LaunchRecord
impl Sync for LaunchRecord
impl Unpin for LaunchRecord
impl UnsafeUnpin for LaunchRecord
impl UnwindSafe for LaunchRecord
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
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§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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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