#[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,
}Expand description
See mpv_stream_cb_open_ro_fn callback.
Fields§
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_fnCallbacks 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_fn§size_fn: mpv_stream_cb_size_fn§close_fn: mpv_stream_cb_close_fn§cancel_fn: mpv_stream_cb_cancel_fnTrait Implementations§
Source§impl Clone for mpv_stream_cb_info
impl Clone for mpv_stream_cb_info
Source§fn clone(&self) -> mpv_stream_cb_info
fn clone(&self) -> mpv_stream_cb_info
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_stream_cb_info
impl Debug for mpv_stream_cb_info
impl Copy for mpv_stream_cb_info
Auto Trait Implementations§
impl Freeze for mpv_stream_cb_info
impl RefUnwindSafe for mpv_stream_cb_info
impl !Send for mpv_stream_cb_info
impl !Sync for mpv_stream_cb_info
impl Unpin for mpv_stream_cb_info
impl UnwindSafe for mpv_stream_cb_info
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