Compare commits
3 Commits
4205a80f5d
...
0a802a9d76
Author | SHA1 | Date |
---|---|---|
Oystein Kristoffer Tveit | 0a802a9d76 | |
Oystein Kristoffer Tveit | 91e551aaf9 | |
Oystein Kristoffer Tveit | e42dd5f19b |
|
@ -189,6 +189,8 @@ pub struct PlaylistEntry {
|
|||
pub struct Playlist(pub Vec<PlaylistEntry>);
|
||||
|
||||
pub trait GetPropertyTypeHandler: Sized {
|
||||
// TODO: fix this
|
||||
#[allow(async_fn_in_trait)]
|
||||
async fn get_property_generic(instance: &Mpv, property: &str) -> Result<Self, Error>;
|
||||
}
|
||||
|
||||
|
@ -205,6 +207,8 @@ where
|
|||
}
|
||||
|
||||
pub trait SetPropertyTypeHandler<T> {
|
||||
// TODO: fix this
|
||||
#[allow(async_fn_in_trait)]
|
||||
async fn set_property_generic(instance: &Mpv, property: &str, value: T) -> Result<(), Error>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue