gstreamer::subclass::prelude

Trait AllocatorImpl

Source
pub trait AllocatorImpl:
    AllocatorImplExt
    + GstObjectImpl
    + Send
    + Sync {
    // Provided methods
    fn alloc(
        &self,
        size: usize,
        params: Option<&AllocationParams>,
    ) -> Result<Memory, BoolError> { ... }
    fn free(&self, memory: Memory) { ... }
}

Provided Methods§

Source

fn alloc( &self, size: usize, params: Option<&AllocationParams>, ) -> Result<Memory, BoolError>

Source

fn free(&self, memory: Memory)

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§