pub struct SignalInfo {
pub signal_number: i32,
pub signal_name: String,
pub likely_oom: bool,
pub details: Option<String>,
}Expand description
Signal information for killed builds.
Fields§
§signal_number: i32Signal number (e.g., 9 for SIGKILL, 15 for SIGTERM).
signal_name: StringSignal name (e.g., “SIGKILL”, “SIGTERM”).
likely_oom: boolWhether this was likely an OOM kill.
details: Option<String>Additional details about the kill.
Implementations§
Source§impl SignalInfo
impl SignalInfo
Sourcepub fn from_signal(signal: i32) -> Self
pub fn from_signal(signal: i32) -> Self
Create from a signal number.
Sourcepub fn from_exit_code(exit_code: i32) -> Option<Self>
pub fn from_exit_code(exit_code: i32) -> Option<Self>
Create from an exit code (128 + signal).
Sourcepub fn with_oom_details(self, details: impl Into<String>) -> Self
pub fn with_oom_details(self, details: impl Into<String>) -> Self
Mark as OOM kill with details.
Trait Implementations§
Source§impl Clone for SignalInfo
impl Clone for SignalInfo
Source§fn clone(&self) -> SignalInfo
fn clone(&self) -> SignalInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SignalInfo
impl Debug for SignalInfo
Source§impl<'de> Deserialize<'de> for SignalInfo
impl<'de> Deserialize<'de> for SignalInfo
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
Auto Trait Implementations§
impl Freeze for SignalInfo
impl RefUnwindSafe for SignalInfo
impl Send for SignalInfo
impl Sync for SignalInfo
impl Unpin for SignalInfo
impl UnsafeUnpin for SignalInfo
impl UnwindSafe for SignalInfo
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