pub trait Terminal {
// Required method
fn is_terminal(&self) -> bool;
}Expand description
Trait that communicates if something is terminal (eg/ requires shutdown or restart).
Required Methods§
fn is_terminal(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".