Skip to main content

GetIf

Trait GetIf 

Source
pub trait GetIf<T: 'static>: 'static {
    // Required methods
    fn get(&self) -> Pin<Box<dyn Future<Output = T> + '_>>;
    fn try_get(&self) -> Option<T>;
    fn can_get(&self) -> bool;
}
Expand description

What a get export offers: take the item out.

Required Methods§

Source

fn get(&self) -> Pin<Box<dyn Future<Output = T> + '_>>

Source

fn try_get(&self) -> Option<T>

Source

fn can_get(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§