Skip to main content

EntryOutcome

Trait EntryOutcome 

Source
pub trait EntryOutcome {
    // Required method
    fn into_exit_code(self) -> i32;
}
Expand description

Trait allowing process_entry! to accept (), u8, i32, or Result<(), E>.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl EntryOutcome for ()

Source§

impl EntryOutcome for i32

Source§

impl EntryOutcome for u8

Source§

impl<E> EntryOutcome for Result<(), E>

Implementors§