#[repr(transparent)]
pub struct SigSet { /* private fields */ }
Expand description

Specifies a set of Signals that may be blocked, waited for, etc.

Implementations

Initialize to include all signals.

Initialize to include nothing.

Add the specified signal to the set.

Remove all signals from this set.

Remove the specified signal from this set.

Return whether this set includes the specified signal.

Returns an iterator that yields the signals contained in this set.

Gets the currently blocked (masked) set of signals for the calling thread.

Sets the set of signals as the signal mask for the calling thread.

Adds the set of signals to the signal mask for the calling thread.

Removes the set of signals from the signal mask for the calling thread.

Sets the set of signals as the signal mask, and returns the old mask.

Suspends execution of the calling thread until one of the signals in the signal mask becomes pending, and returns the accepted signal.

Converts a libc::sigset_t object to a SigSet without checking whether the libc::sigset_t is already initialized.

Safety

The sigset passed in must be a valid an initialized libc::sigset_t by calling either sigemptyset(3) or sigfillset(3). Otherwise, the results are undefined.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Extends a collection with the contents of an iterator. Read more
🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
Creates a value from an iterator. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.