Trait HyprDataActiveOptional
pub trait HyprDataActiveOptional {
// Required methods
fn get_active() -> Result<Option<Self>, HyprError>
where Self: Sized;
async fn get_active_async() -> Result<Option<Self>, HyprError>
where Self: Sized;
}
Expand description
Trait for helper functions to get the active of the implementor, but for optional ones
Required Methods§
fn get_active() -> Result<Option<Self>, HyprError>where
Self: Sized,
fn get_active() -> Result<Option<Self>, HyprError>where
Self: Sized,
This method gets the active data
async fn get_active_async() -> Result<Option<Self>, HyprError>where
Self: Sized,
async fn get_active_async() -> Result<Option<Self>, HyprError>where
Self: Sized,
This method gets the active data (async)