Struct pawawwewism::Background
source · pub struct Background<R> { /* private fields */ }
Expand description
A simple run-to-completion background thread.
Created with the freestanding background
function.
This is an owned thread that runs a closure to completion and returns the result back to the
owning thread when it calls Background::join
.
Calling Background::join
or dropping a Background
object will join the thread. If the
thread panicked, the panic will be propagated to the owner.
Implementations§
source§impl<R> Background<R>
impl<R> Background<R>
Trait Implementations§
Auto Trait Implementations§
impl<R> !RefUnwindSafe for Background<R>
impl<R> Send for Background<R>
impl<R> Sync for Background<R>
impl<R> Unpin for Background<R>
impl<R> !UnwindSafe for Background<R>
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