pub struct JoinHandle { /* private fields */ }Expand description
A handle to the render thread, which when dropped will instruct it to stop showing progress.
Implementations§
Source§impl JoinHandle
impl JoinHandle
Sourcepub fn disconnect(&mut self)
pub fn disconnect(&mut self)
Remove the handles capability to instruct the render thread to stop, but it will still wait for it
if dropped.
Use forget() if it should not wait for the render thread anymore.
Sourcepub fn forget(&mut self)
pub fn forget(&mut self)
Remove the handles capability to join() by forgetting the threads handle
Sourcepub fn wait(self)
pub fn wait(self)
Wait for the thread to shutdown naturally, for example because there is no more progress to display
Sourcepub fn shutdown_and_wait(self)
pub fn shutdown_and_wait(self)
Send the signal to shutdown and wait for the thread to be shutdown.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JoinHandle
impl !RefUnwindSafe for JoinHandle
impl Send for JoinHandle
impl Sync for JoinHandle
impl Unpin for JoinHandle
impl !UnwindSafe for JoinHandle
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more