Trait Termination

Source
pub trait Termination {
    // Required method
    fn report(self);
}
Expand description

A trait that can be implemented for arbitrary return types in the main function.

Required Methods§

Source

fn report(self)

Run specific termination logic.

Unlike in the standard library, this function does not return a status code.

Implementations on Foreign Types§

Source§

impl Termination for Infallible

Source§

impl Termination for !

Source§

impl Termination for ()

Source§

impl<T: Termination, E: Debug> Termination for Result<T, E>

Implementors§