pub enum SignalKind {
Auto,
Manual,
}
Expand description
Determines the reset behavior of a SignalEvent
.
See SignalEvent
for more information.
Variants§
Auto
An activated SignalEvent
automatically resets when a thread is resumed.
SignalEvent
s with this kind will only resume one thread at a time.
Manual
An activated SignalEvent
must be manually reset to block threads again.
SignalEvent
s with this kind will signal every waiting thread to continue at once.
Trait Implementations§
Source§impl Clone for SignalKind
impl Clone for SignalKind
Source§fn clone(&self) -> SignalKind
fn clone(&self) -> SignalKind
Returns a copy 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 SignalKind
impl Debug for SignalKind
Source§impl PartialEq for SignalKind
impl PartialEq for SignalKind
impl Copy for SignalKind
impl StructuralPartialEq for SignalKind
Auto Trait Implementations§
impl Freeze for SignalKind
impl RefUnwindSafe for SignalKind
impl Send for SignalKind
impl Sync for SignalKind
impl Unpin for SignalKind
impl UnwindSafe for SignalKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Auto
: 0 bytesManual
: 0 bytes