[][src]Struct libmpv_sys::mpv_stream_cb_info

#[repr(C)]pub struct mpv_stream_cb_info {
    pub cookie: *mut c_void,
    pub read_fn: mpv_stream_cb_read_fn,
    pub seek_fn: mpv_stream_cb_seek_fn,
    pub size_fn: mpv_stream_cb_size_fn,
    pub close_fn: mpv_stream_cb_close_fn,
    pub cancel_fn: mpv_stream_cb_cancel_fn,
}

See mpv_stream_cb_open_ro_fn callback.

Fields

cookie: *mut c_void

Opaque user-provided value, which will be passed to the other callbacks. The close callback will be called to release the cookie. It is not interpreted by mpv. It doesn't even need to be a valid pointer.

The user sets this in the mpv_stream_cb_open_ro_fn callback.

read_fn: mpv_stream_cb_read_fn

Callbacks set by the user in the mpv_stream_cb_open_ro_fn callback. Some of them are optional, and can be left unset.

The following callbacks are mandatory: read_fn, close_fn

seek_fn: mpv_stream_cb_seek_fnsize_fn: mpv_stream_cb_size_fnclose_fn: mpv_stream_cb_close_fncancel_fn: mpv_stream_cb_cancel_fn

Trait Implementations

impl Clone for mpv_stream_cb_info[src]

impl Copy for mpv_stream_cb_info[src]

impl Debug for mpv_stream_cb_info[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.