Struct swap::worker::BackgroundJob
source · pub struct BackgroundJob<'a> {
event: &'a Event,
abort_flag: &'a AtomicBool,
}
Expand description
Background job context.
When dropped, this sends an event to the main thread via [Event].
Fields§
§event: &'a Event
§abort_flag: &'a AtomicBool
Implementations§
source§impl BackgroundJob<'_>
impl BackgroundJob<'_>
sourcepub fn is_aborted(&self) -> bool
pub fn is_aborted(&self) -> bool
Returns whether the background job is aborted or not.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for BackgroundJob<'a>
impl<'a> Send for BackgroundJob<'a>
impl<'a> Sync for BackgroundJob<'a>
impl<'a> Unpin for BackgroundJob<'a>
impl<'a> UnwindSafe for BackgroundJob<'a>
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