Skip to main content

Held

Trait Held 

Source
pub(super) trait Held: Send {
    // Required methods
    fn alive(&self) -> bool;
    fn release(self: Box<Self>) -> Result<(), String>;
}
Expand description

An inhibition held.

Required Methods§

Source

fn alive(&self) -> bool

Source

fn release(self: Box<Self>) -> Result<(), String>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Held for Inhibition

Available on Unix and neither Android nor macOS only.
Source§

fn alive(&self) -> bool

Source§

fn release(self: Box<Self>) -> Result<(), String>

Implementors§