Trait HyprDataActive

pub trait HyprDataActive {
    // Required methods
    fn get_active() -> Result<Self, HyprError>
       where Self: Sized;
    async fn get_active_async() -> Result<Self, HyprError>
       where Self: Sized;
}
Expand description

Trait for helper functions to get the active of the implementor

Required Methods§

fn get_active() -> Result<Self, HyprError>
where Self: Sized,

This method gets the active data

async fn get_active_async() -> Result<Self, HyprError>
where Self: Sized,

This method gets the active data (async)

Implementors§