[][src]Struct soundio::InStreamUserData

pub struct InStreamUserData<'a> {
    pub instream: *mut SoundIoInStream,
    pub read_callback: Box<dyn FnMut(&mut InStreamReader) + 'a>,
    pub overflow_callback: Option<Box<dyn FnMut() + 'a>>,
    pub error_callback: Option<Box<dyn FnMut(Error) + 'a>>,
}

The callbacks required for an instream are stored in this object. We also store a pointer to the raw instream so that it can be passed to InStreamReader in the write callback.

Fields

instream: *mut SoundIoInStreamread_callback: Box<dyn FnMut(&mut InStreamReader) + 'a>overflow_callback: Option<Box<dyn FnMut() + 'a>>error_callback: Option<Box<dyn FnMut(Error) + 'a>>

Trait Implementations

impl<'a> Drop for InStreamUserData<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for InStreamUserData<'a>

impl<'a> !Send for InStreamUserData<'a>

impl<'a> !Sync for InStreamUserData<'a>

impl<'a> Unpin for InStreamUserData<'a>

impl<'a> !UnwindSafe for InStreamUserData<'a>

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, 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.