Trait InputAdapterHandler

Source
pub trait InputAdapterHandler<D: AdapterDescriptor<Input, Handler = Self>>: BaseAdapterHandler<Input, D> {
    // Required method
    fn read(
        &mut self,
        blit_ctx: &InputBlitContext,
        position: usize,
        data: &mut [u8],
    ) -> Result<(), GvoxError>;
}
Expand description

Represents the user data type that handles input adapter context operations.

Required Methods§

Source

fn read( &mut self, blit_ctx: &InputBlitContext, position: usize, data: &mut [u8], ) -> Result<(), GvoxError>

Fills the provided data slice with bytes from this input adapter, beginning at the specified source offset.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§