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