pub enum Property {
Show 16 variants
Path(Option<String>),
Pause(bool),
PlaybackTime(Option<f64>),
Duration(Option<f64>),
Metadata(Option<HashMap<String, MpvDataType>>),
Playlist(Vec<PlaylistEntry>),
PlaylistPos(Option<usize>),
LoopFile(LoopProperty),
LoopPlaylist(LoopProperty),
TimePos(Option<f64>),
TimeRemaining(Option<f64>),
Speed(f64),
Volume(f64),
Mute(bool),
EofReached(bool),
Unknown {
name: String,
data: Option<MpvDataType>,
},
}
Expand description
An incomplete list of properties that mpv can return.
Unimplemented properties will be returned with it’s data
as a Property::Unknown
variant.
See https://mpv.io/manual/master/#properties for the upstream list of properties.
Variants§
Path(Option<String>)
Pause(bool)
PlaybackTime(Option<f64>)
Duration(Option<f64>)
Metadata(Option<HashMap<String, MpvDataType>>)
Playlist(Vec<PlaylistEntry>)
PlaylistPos(Option<usize>)
LoopFile(LoopProperty)
LoopPlaylist(LoopProperty)
TimePos(Option<f64>)
TimeRemaining(Option<f64>)
Speed(f64)
Volume(f64)
Mute(bool)
EofReached(bool)
Unknown
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Property
impl<'de> Deserialize<'de> for Property
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Property
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more