#[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_charName of the property.
format: mpv_formatFormat 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_voidReceived 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§
Source§impl Clone for mpv_event_property
impl Clone for mpv_event_property
Source§fn clone(&self) -> mpv_event_property
fn clone(&self) -> mpv_event_property
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for mpv_event_property
impl Debug for mpv_event_property
impl Copy for mpv_event_property
Auto Trait Implementations§
impl Freeze for mpv_event_property
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§
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