pub struct SignalEvent {
pub signal_name: String,
pub signal_number: i32,
pub timestamp: Instant,
}Expand description
Represents a signal event that needs to be processed
Fields§
§signal_name: StringSignal name (e.g., “INT”, “TERM”)
signal_number: i32Signal number (e.g., 2, 15)
timestamp: InstantWhen the signal was received
Implementations§
Trait Implementations§
Source§impl Clone for SignalEvent
impl Clone for SignalEvent
Source§fn clone(&self) -> SignalEvent
fn clone(&self) -> SignalEvent
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 moreAuto Trait Implementations§
impl Freeze for SignalEvent
impl RefUnwindSafe for SignalEvent
impl Send for SignalEvent
impl Sync for SignalEvent
impl Unpin for SignalEvent
impl UnwindSafe for SignalEvent
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