pub struct ThreadStrategy();
Expand description
Strategy which drops the contained value in a newly spawned background thread.
A new thread is spawned (using std::thread::spawn
) for every dropped value.
This is conceptually very simple, but relatively slow since spawning a thread has overhead.
Trait Implementations§
Source§impl<T> BackdropStrategy<T> for ThreadStrategywhere
T: Send + 'static,
impl<T> BackdropStrategy<T> for ThreadStrategywhere
T: Send + 'static,
Auto Trait Implementations§
impl Freeze for ThreadStrategy
impl RefUnwindSafe for ThreadStrategy
impl Send for ThreadStrategy
impl Sync for ThreadStrategy
impl Unpin for ThreadStrategy
impl UnwindSafe for ThreadStrategy
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