#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.