pub enum Format<'a> {
Flag(bool),
Str(&'a str),
Double(f64),
Int(i64),
OsdStr(&'a str),
}
Expand description
Event replies GetPropertyReply
and PropertyChange
will answer this object.
This list is incomplete, the current formats are missing :
Node
NodeArray
NodeMap
ByteArray
Variants§
Implementations§
Source§impl<'a> Format<'a>
impl<'a> Format<'a>
pub fn get_mpv_format(&self) -> MpvInternalFormat
Sourcepub fn get_from_c_void(format: MpvInternalFormat, pointer: *mut c_void) -> Self
pub fn get_from_c_void(format: MpvInternalFormat, pointer: *mut c_void) -> Self
This is used internally by the mpv-rs crate, you probably should not be using this.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Format<'a>
impl<'a> RefUnwindSafe for Format<'a>
impl<'a> Send for Format<'a>
impl<'a> Sync for Format<'a>
impl<'a> Unpin for Format<'a>
impl<'a> UnwindSafe for Format<'a>
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