[][src]Struct libmpv_sys::mpv_event_property

#[repr(C)]pub struct mpv_event_property {
    pub name: *const c_char,
    pub format: mpv_format,
    pub data: *mut c_void,
}

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]

impl Copy for mpv_event_property[src]

impl Debug for mpv_event_property[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.