[−][src]Enum interprocess::os::unix::signal::SignalHandler
A signal handling method.
Variants
Use the default behavior specified by POSIX.
Ignore the signal whenever it is received.
Hook(SignalHook)
Call a function whenever the signal is received.
Implementations
impl SignalHandler
[src]
pub fn is_default(self) -> bool
[src]
Returns true
for the Default
variant, false
otherwise.
pub fn is_ignore(self) -> bool
[src]
Returns true
for the Ignore
variant, false
otherwise.
pub fn is_hook(self) -> bool
[src]
Returns true
for the Hook
variant, false
otherwise.
pub unsafe fn from_fn(function: fn()) -> Self
[src]
Creates a handler which calls the specified function.
Safety
The function must not perform any system calls which are not considered signal-safe. See the module-level section on signal-safe system calls for more.
Trait Implementations
impl Clone for SignalHandler
[src]
fn clone(&self) -> SignalHandler
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SignalHandler
[src]
impl Debug for SignalHandler
[src]
impl Default for SignalHandler
[src]
fn default() -> Self
[src]
Returns SignalHandler::Default
.
impl Eq for SignalHandler
[src]
impl From<SignalHook> for SignalHandler
[src]
fn from(op: SignalHook) -> Self
[src]
impl PartialEq<SignalHandler> for SignalHandler
[src]
fn eq(&self, other: &SignalHandler) -> bool
[src]
fn ne(&self, other: &SignalHandler) -> bool
[src]
impl StructuralEq for SignalHandler
[src]
impl StructuralPartialEq for SignalHandler
[src]
Auto Trait Implementations
impl RefUnwindSafe for SignalHandler
impl Send for SignalHandler
impl Sync for SignalHandler
impl Unpin for SignalHandler
impl UnwindSafe for SignalHandler
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,