pub unsafe trait IsSubclassable<T>: IsSubclassableDefault<T>
where T: ObjectSubclass,
{ // Provided methods fn class_init(class: &mut Class<Self>) { ... } fn instance_init(instance: &mut InitializingObject<T>) { ... } }
Expand description

Trait for subclassable class structs.

Provided Methods§

source

fn class_init(class: &mut Class<Self>)

Override the virtual methods of this class for the given subclass and do other class initialization.

This is automatically called during type initialization and must call class_init() of the parent class.

source

fn instance_init(instance: &mut InitializingObject<T>)

Instance specific initialization.

This is automatically called during instance initialization and must call instance_init() of the parent class.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> IsSubclassable<T> for Allocator
where T: AllocatorImpl,

source§

impl<T> IsSubclassable<T> for Bin
where T: BinImpl,

source§

fn class_init(klass: &mut Class<Bin>)

source§

impl<T> IsSubclassable<T> for BufferPool
where T: BufferPoolImpl,

source§

impl<T> IsSubclassable<T> for Clock
where T: ClockImpl,

source§

fn class_init(klass: &mut Class<Clock>)

source§

impl<T> IsSubclassable<T> for Device
where T: DeviceImpl,

source§

impl<T> IsSubclassable<T> for DeviceProvider

source§

impl<T> IsSubclassable<T> for Element
where T: ElementImpl,

source§

impl<T> IsSubclassable<T> for GhostPad
where T: GhostPadImpl,

source§

impl<T> IsSubclassable<T> for Object
where T: GstObjectImpl,

source§

impl<T> IsSubclassable<T> for Pad
where T: PadImpl,

source§

fn class_init(klass: &mut Class<Pad>)

source§

impl<T> IsSubclassable<T> for Pipeline
where T: PipelineImpl,

source§

impl<T> IsSubclassable<T> for ProxyPad
where T: ProxyPadImpl,

source§

impl<T> IsSubclassable<T> for SystemClock
where T: SystemClockImpl,

source§

impl<T> IsSubclassable<T> for TaskPool
where T: TaskPoolImpl,

source§

impl<T> IsSubclassable<T> for Tracer
where T: TracerImpl,

source§

impl<T> IsSubclassable<T> for AudioAggregator

source§

impl<T> IsSubclassable<T> for AudioAggregatorConvertPad

source§

impl<T> IsSubclassable<T> for AudioAggregatorPad

source§

impl<T> IsSubclassable<T> for AudioBaseSink

source§

impl<T> IsSubclassable<T> for AudioBaseSrc

source§

impl<T> IsSubclassable<T> for AudioDecoder

source§

impl<T> IsSubclassable<T> for AudioEncoder

source§

impl<T> IsSubclassable<T> for AudioFilter
where T: AudioFilterImpl,

source§

impl<T> IsSubclassable<T> for AudioSink
where T: AudioSinkImpl,

source§

impl<T> IsSubclassable<T> for AudioSrc
where T: AudioSrcImpl,

source§

impl<T> IsSubclassable<T> for Aggregator
where T: AggregatorImpl,

source§

impl<T> IsSubclassable<T> for AggregatorPad

source§

impl<T> IsSubclassable<T> for BaseParse
where T: BaseParseImpl,

source§

impl<T> IsSubclassable<T> for BaseSink
where T: BaseSinkImpl,

source§

impl<T> IsSubclassable<T> for BaseSrc
where T: BaseSrcImpl,

source§

impl<T> IsSubclassable<T> for BaseTransform

source§

impl<T> IsSubclassable<T> for PushSrc
where T: PushSrcImpl,

source§

impl<T> IsSubclassable<T> for AudioVisualizer

source§

impl<T> IsSubclassable<T> for VideoAggregator

source§

impl<T> IsSubclassable<T> for VideoAggregatorConvertPad

source§

impl<T> IsSubclassable<T> for VideoAggregatorPad

source§

impl<T> IsSubclassable<T> for VideoDecoder

source§

impl<T> IsSubclassable<T> for VideoEncoder

source§

impl<T> IsSubclassable<T> for VideoFilter
where T: VideoFilterImpl,

source§

impl<T> IsSubclassable<T> for VideoSink
where T: VideoSinkImpl,

source§

impl<T> IsSubclassable<T> for Application
where T: ApplicationImpl,

source§

impl<T> IsSubclassable<T> for InputStream
where T: InputStreamImpl,

source§

impl<T> IsSubclassable<T> for IOStream
where T: IOStreamImpl,

source§

impl<T> IsSubclassable<T> for OutputStream

source§

impl<T> IsSubclassable<T> for SocketControlMessage

Implementors§