Struct spirit::terminate_guard::TerminateGuard [−][src]
pub struct TerminateGuard<O, C> where
C: DeserializeOwned + Send + Sync,
O: StructOpt, { /* fields omitted */ }
Expand description
The termination RAII guard for test purposes.
See the testing guide for details of use. Created by App::run_test.
Note that this will shut down (call terminate
) when dropped and wait for the termination to
happen. It’ll then check that everything went successfully and panic if not. This is meant for
tests, so it’s desired behaviour.
Panics
The destructor may panic if the contained spirit app fails during termination. See above.