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§
fn get(&self) -> Pin<Box<dyn Future<Output = T> + '_>>
fn try_get(&self) -> Option<T>
fn can_get(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".