pub trait RealityAccessor: Send + Sync {
// Required methods
fn get_level<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<RealityLevel>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_config<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<RealityConfig>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Trait for accessing reality subsystem
Required Methods§
Sourcefn get_level<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<RealityLevel>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_level<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<RealityLevel>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get current reality level
Sourcefn get_config<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<RealityConfig>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_config<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<RealityConfig>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get reality configuration
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".