pub struct ServiceProcess {
pub pid: u32,
pub kind: ServiceKind,
pub args: Vec<String>,
/* private fields */
}Expand description
One process selected for a lifecycle stop, with the identity it had when it was selected so a recycled PID is never signalled.
Fields§
§pid: u32§kind: ServiceKind§args: Vec<String>The arguments after the executable, e.g. proxy start --port=4444;
restart starts a proxy it stopped again with these.
Implementations§
Source§impl ServiceProcess
impl ServiceProcess
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
The selected process still runs (same PID, same identity).
Sourcepub fn signal(&self, signal: StopSignal) -> bool
pub fn signal(&self, signal: StopSignal) -> bool
Deliver signal only while the PID is still this process.
Trait Implementations§
Source§impl Clone for ServiceProcess
impl Clone for ServiceProcess
Source§impl Debug for ServiceProcess
impl Debug for ServiceProcess
impl Eq for ServiceProcess
Source§impl PartialEq for ServiceProcess
impl PartialEq for ServiceProcess
impl StructuralPartialEq for ServiceProcess
Auto Trait Implementations§
impl Forget for ServiceProcess
impl Freeze for ServiceProcess
impl Move for ServiceProcess
impl RefUnwindSafe for ServiceProcess
impl Send for ServiceProcess
impl Sync for ServiceProcess
impl Unpin for ServiceProcess
impl UnsafeUnpin for ServiceProcess
impl UnwindSafe for ServiceProcess
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,
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