Trait HyprData

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

This trait provides a standardized way to get data

Required Methods§

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

This method gets the data

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

This method gets the data (async)

Implementors§