[−][src]Struct libmpv_sys::mpv_event_property
Fields
name: *const c_char
Name of the property.
format: mpv_format
Format of the data field in the same struct. See enum mpv_format. This is always the same format as the requested format, except when the property could not be retrieved (unavailable, or an error happened), in which case the format is MPV_FORMAT_NONE.
data: *mut c_void
Received property value. Depends on the format. This is like the pointer argument passed to mpv_get_property().
For example, for MPV_FORMAT_STRING you get the string with:
char *value = *(char **)(event_property->data);
Note that this is set to NULL if retrieving the property failed (the format will be MPV_FORMAT_NONE).
Trait Implementations
impl Clone for mpv_event_property
[src]
fn clone(&self) -> mpv_event_property
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for mpv_event_property
[src]
impl Debug for mpv_event_property
[src]
Auto Trait Implementations
impl RefUnwindSafe for mpv_event_property
impl !Send for mpv_event_property
impl !Sync for mpv_event_property
impl Unpin for mpv_event_property
impl UnwindSafe for mpv_event_property
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,