Enum ckb_stop_handler::SignalSender
source · pub enum SignalSender<T> {
Crossbeam(Sender<T>),
Std(Sender<T>),
Tokio(Sender<T>),
Watch(Sender<u8>),
Dummy,
}
Expand description
TODO(doc): @keroro520
Variants§
Crossbeam(Sender<T>)
TODO(doc): @keroro520
Std(Sender<T>)
TODO(doc): @keroro520
Tokio(Sender<T>)
TODO(doc): @keroro520
Watch(Sender<u8>)
A single-producer, multi-consumer channel that only retains the last sent value.
Dummy
Do nothing, for tests
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for SignalSender<T>
impl<T> Send for SignalSender<T>where T: Send,
impl<T> Sync for SignalSender<T>where T: Send,
impl<T> Unpin for SignalSender<T>
impl<T> !UnwindSafe for SignalSender<T>
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