Struct rustler::thread::ThreadSpawner
source · [−]pub struct ThreadSpawner;
Expand description
A JobSpawner
that uses a separate system thread for each job.
Trait Implementations
sourceimpl JobSpawner for ThreadSpawner
impl JobSpawner for ThreadSpawner
sourcefn spawn<F: FnOnce() + Send + UnwindSafe + 'static>(job: F)
fn spawn<F: FnOnce() + Send + UnwindSafe + 'static>(job: F)
This delegates to std::thread::spawn()
.
Auto Trait Implementations
impl RefUnwindSafe for ThreadSpawner
impl Send for ThreadSpawner
impl Sync for ThreadSpawner
impl Unpin for ThreadSpawner
impl UnwindSafe for ThreadSpawner
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more