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.

Implementations

Access to the managed Spirit instance.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Turns self into the result.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.