Enum spirit::extension::Autojoin [−][src]
#[non_exhaustive]
pub enum Autojoin {
TerminateAndJoin,
Join,
Abandon,
}
Expand description
Selection of the way the background thread is handled at the end of the run
method.
Note that this is a non-exhaustive enum. More variants may be added without considering it a breaking change.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Terminate the application and join the background thread.
Only join the background thread.
It is up to the caller to ensure the background thread will actually terminate, so the program doesn’t deadlock.
Leave the background thread running and proceed.
It is up to the caller to either join the thread manually or to make sure not doing proper shutdown is OK. In particular, if the thread is left running on application termination, the guards need not to be dropped.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Autojoin
impl UnwindSafe for Autojoin
Blanket Implementations
Mutably borrows from an owned value. Read more