#[repr(C)]pub struct openmpt_stream_callbacks {
pub read: openmpt_stream_read_func,
pub seek: openmpt_stream_seek_func,
pub tell: openmpt_stream_tell_func,
}
Expand description
\brief Stream callbacks
Stream callbacks used by libopenmpt for stream operations. \sa openmpt_stream_get_file_callbacks \sa openmpt_stream_get_fd_callbacks \sa openmpt_stream_get_buffer_callbacks
Fields§
§read: openmpt_stream_read_func
\brief Read callback.
\sa openmpt_stream_read_func
seek: openmpt_stream_seek_func
\brief Seek callback.
Seek callback can be NULL if seeking is not supported. \sa openmpt_stream_seek_func
tell: openmpt_stream_tell_func
\brief Tell callback.
Tell callback can be NULL if seeking is not supported. \sa openmpt_stream_tell_func
Trait Implementations§
Source§impl Clone for openmpt_stream_callbacks
impl Clone for openmpt_stream_callbacks
Source§fn clone(&self) -> openmpt_stream_callbacks
fn clone(&self) -> openmpt_stream_callbacks
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 openmpt_stream_callbacks
impl Debug for openmpt_stream_callbacks
impl Copy for openmpt_stream_callbacks
Auto Trait Implementations§
impl Freeze for openmpt_stream_callbacks
impl RefUnwindSafe for openmpt_stream_callbacks
impl Send for openmpt_stream_callbacks
impl Sync for openmpt_stream_callbacks
impl Unpin for openmpt_stream_callbacks
impl UnwindSafe for openmpt_stream_callbacks
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