Trait gst_plugin::base_sink::BaseSinkImpl [−][src]
pub trait BaseSinkImpl<T: BaseSinkBase>: AnyImpl + ObjectImpl<T> + ElementImpl<T> + Send + Sync + 'static where
T::InstanceStructType: PanicPoison, { fn render(&self, element: &T, buffer: &BufferRef) -> FlowReturn; fn start(&self, _element: &T) -> bool { ... } fn stop(&self, _element: &T) -> bool { ... } fn prepare(&self, _element: &T, _buffer: &BufferRef) -> FlowReturn { ... } fn render_list(&self, element: &T, list: &BufferListRef) -> FlowReturn { ... } fn prepare_list(&self, element: &T, list: &BufferListRef) -> FlowReturn { ... } fn query(&self, element: &T, query: &mut QueryRef) -> bool { ... } fn event(&self, element: &T, event: Event) -> bool { ... } fn get_caps(&self, element: &T, filter: Option<&CapsRef>) -> Option<Caps> { ... } fn set_caps(&self, element: &T, caps: &CapsRef) -> bool { ... } fn fixate(&self, element: &T, caps: Caps) -> Caps { ... } fn unlock(&self, _element: &T) -> bool { ... } fn unlock_stop(&self, _element: &T) -> bool { ... } }
Required Methods
fn render(&self, element: &T, buffer: &BufferRef) -> FlowReturn
Provided Methods
fn start(&self, _element: &T) -> bool
fn stop(&self, _element: &T) -> bool
fn prepare(&self, _element: &T, _buffer: &BufferRef) -> FlowReturn
fn render_list(&self, element: &T, list: &BufferListRef) -> FlowReturn
fn prepare_list(&self, element: &T, list: &BufferListRef) -> FlowReturn
fn query(&self, element: &T, query: &mut QueryRef) -> bool
fn event(&self, element: &T, event: Event) -> bool
fn get_caps(&self, element: &T, filter: Option<&CapsRef>) -> Option<Caps>
fn set_caps(&self, element: &T, caps: &CapsRef) -> bool
fn fixate(&self, element: &T, caps: Caps) -> Caps
fn unlock(&self, _element: &T) -> bool
fn unlock_stop(&self, _element: &T) -> bool
Methods
impl<T: BaseSinkBase> BaseSinkImpl<T> where
T::InstanceStructType: PanicPoison,
impl<T: BaseSinkBase> BaseSinkImpl<T> where
T::InstanceStructType: PanicPoison,
pub fn downcast_ref<U: BaseSinkImpl<T>>(&self) -> Option<&U>
pub fn downcast_ref<U: BaseSinkImpl<T>>(&self) -> Option<&U>
ⓘImportant traits for &'a mut Rpub unsafe fn downcast_ref_unchecked<U: BaseSinkImpl<T>>(&self) -> &U
ⓘImportant traits for &'a mut R
pub unsafe fn downcast_ref_unchecked<U: BaseSinkImpl<T>>(&self) -> &U
pub fn is<U: BaseSinkImpl<T>>(&self) -> bool
pub fn is<U: BaseSinkImpl<T>>(&self) -> bool
Implementations on Foreign Types
impl<T: BaseSinkBase> BaseSinkImpl<T> for Box<BaseSinkImpl<T>> where
T::InstanceStructType: PanicPoison,
[src]
impl<T: BaseSinkBase> BaseSinkImpl<T> for Box<BaseSinkImpl<T>> where
T::InstanceStructType: PanicPoison,
fn start(&self, element: &T) -> bool
[src]
fn start(&self, element: &T) -> bool
fn stop(&self, element: &T) -> bool
[src]
fn stop(&self, element: &T) -> bool
fn render(&self, element: &T, buffer: &BufferRef) -> FlowReturn
[src]
fn render(&self, element: &T, buffer: &BufferRef) -> FlowReturn
fn prepare(&self, element: &T, buffer: &BufferRef) -> FlowReturn
[src]
fn prepare(&self, element: &T, buffer: &BufferRef) -> FlowReturn
fn render_list(&self, element: &T, list: &BufferListRef) -> FlowReturn
[src]
fn render_list(&self, element: &T, list: &BufferListRef) -> FlowReturn
fn prepare_list(&self, element: &T, list: &BufferListRef) -> FlowReturn
[src]
fn prepare_list(&self, element: &T, list: &BufferListRef) -> FlowReturn
fn query(&self, element: &T, query: &mut QueryRef) -> bool
[src]
fn query(&self, element: &T, query: &mut QueryRef) -> bool
fn event(&self, element: &T, event: Event) -> bool
[src]
fn event(&self, element: &T, event: Event) -> bool
fn get_caps(&self, element: &T, filter: Option<&CapsRef>) -> Option<Caps>
[src]
fn get_caps(&self, element: &T, filter: Option<&CapsRef>) -> Option<Caps>
fn set_caps(&self, element: &T, caps: &CapsRef) -> bool
[src]
fn set_caps(&self, element: &T, caps: &CapsRef) -> bool
fn fixate(&self, element: &T, caps: Caps) -> Caps
[src]
fn fixate(&self, element: &T, caps: Caps) -> Caps
fn unlock(&self, element: &T) -> bool
[src]
fn unlock(&self, element: &T) -> bool
fn unlock_stop(&self, element: &T) -> bool
[src]
fn unlock_stop(&self, element: &T) -> bool