#[non_exhaustive]pub enum WhenDone {
Disconnect,
Stay,
}Expand description
What Ext does when the main task returns.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Disconnect
End the session (SessionEnd::Quit with “done”, or the error). The default: the
main task is the bot’s main.
Stay
Keep the session: other spawned tasks go on; once none are left the behaviour finishes and the player stands and answers the server.
Trait Implementations§
impl Copy for WhenDone
impl Eq for WhenDone
impl StructuralPartialEq for WhenDone
Auto Trait Implementations§
impl Forget for WhenDone
impl Freeze for WhenDone
impl Move for WhenDone
impl RefUnwindSafe for WhenDone
impl Send for WhenDone
impl Sync for WhenDone
impl Unpin for WhenDone
impl UnsafeUnpin for WhenDone
impl UnwindSafe for WhenDone
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