pub struct SignalImpact {
pub active_tcp_connections: usize,
pub child_process_count: usize,
pub has_file_locks: bool,
pub systemd_unit: Option<String>,
pub recommendation: String,
pub prefer_graceful: bool,
}Expand description
Structured description of the impact of sending a signal to a process.
Fields§
§active_tcp_connections: usizeNumber of active TCP connections this process has.
child_process_count: usizeNumber of direct child processes.
has_file_locks: boolWhether the process holds any exclusive file locks.
systemd_unit: Option<String>Detected systemd unit name (e.g. “nginx.service”), if any.
recommendation: StringHuman-readable recommendation.
prefer_graceful: boolWhether a graceful stop is preferred over a hard kill.
Trait Implementations§
Source§impl Clone for SignalImpact
impl Clone for SignalImpact
Source§fn clone(&self) -> SignalImpact
fn clone(&self) -> SignalImpact
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignalImpact
impl Debug for SignalImpact
Source§impl<'de> Deserialize<'de> for SignalImpact
impl<'de> Deserialize<'de> for SignalImpact
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SignalImpact, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SignalImpact, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SignalImpact
impl Serialize for SignalImpact
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SignalImpact
impl RefUnwindSafe for SignalImpact
impl Send for SignalImpact
impl Sync for SignalImpact
impl Unpin for SignalImpact
impl UnsafeUnpin for SignalImpact
impl UnwindSafe for SignalImpact
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