Trait gst_plugin::base_src::BaseSrcImpl [−][src]
pub trait BaseSrcImpl<T: BaseSrcBase>: AnyImpl + ObjectImpl<T> + ElementImpl<T> + Send + Sync + 'static where
T::InstanceStructType: PanicPoison, { fn start(&self, _element: &T) -> bool { ... } fn stop(&self, _element: &T) -> bool { ... } fn is_seekable(&self, _element: &T) -> bool { ... } fn get_size(&self, _element: &T) -> Option<u64> { ... } fn fill(
&self,
_element: &T,
_offset: u64,
_length: u32,
_buffer: &mut BufferRef
) -> FlowReturn { ... } fn create(
&self,
element: &T,
offset: u64,
length: u32
) -> Result<Buffer, FlowReturn> { ... } fn do_seek(&self, element: &T, segment: &mut Segment) -> bool { ... } 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 negotiate(&self, element: &T) -> bool { ... } 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 { ... } }
Provided Methods
fn start(&self, _element: &T) -> bool
fn stop(&self, _element: &T) -> bool
fn is_seekable(&self, _element: &T) -> bool
fn get_size(&self, _element: &T) -> Option<u64>
fn fill(
&self,
_element: &T,
_offset: u64,
_length: u32,
_buffer: &mut BufferRef
) -> FlowReturn
&self,
_element: &T,
_offset: u64,
_length: u32,
_buffer: &mut BufferRef
) -> FlowReturn
fn create(
&self,
element: &T,
offset: u64,
length: u32
) -> Result<Buffer, FlowReturn>
&self,
element: &T,
offset: u64,
length: u32
) -> Result<Buffer, FlowReturn>
fn do_seek(&self, element: &T, segment: &mut Segment) -> bool
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 negotiate(&self, element: &T) -> bool
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: BaseSrcBase> BaseSrcImpl<T> where
T::InstanceStructType: PanicPoison,
impl<T: BaseSrcBase> BaseSrcImpl<T> where
T::InstanceStructType: PanicPoison,
pub fn downcast_ref<U: BaseSrcImpl<T>>(&self) -> Option<&U>
pub fn downcast_ref<U: BaseSrcImpl<T>>(&self) -> Option<&U>
ⓘImportant traits for &'a mut Rpub unsafe fn downcast_ref_unchecked<U: BaseSrcImpl<T>>(&self) -> &U
ⓘImportant traits for &'a mut R
pub unsafe fn downcast_ref_unchecked<U: BaseSrcImpl<T>>(&self) -> &U
pub fn is<U: BaseSrcImpl<T>>(&self) -> bool
pub fn is<U: BaseSrcImpl<T>>(&self) -> bool
Implementations on Foreign Types
impl<T: BaseSrcBase> BaseSrcImpl<T> for Box<BaseSrcImpl<T>> where
T::InstanceStructType: PanicPoison,
[src]
impl<T: BaseSrcBase> BaseSrcImpl<T> for Box<BaseSrcImpl<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 is_seekable(&self, element: &T) -> bool
[src]
fn is_seekable(&self, element: &T) -> bool
fn get_size(&self, element: &T) -> Option<u64>
[src]
fn get_size(&self, element: &T) -> Option<u64>
fn fill(
&self,
element: &T,
offset: u64,
length: u32,
buffer: &mut BufferRef
) -> FlowReturn
[src]
fn fill(
&self,
element: &T,
offset: u64,
length: u32,
buffer: &mut BufferRef
) -> FlowReturn
fn create(
&self,
element: &T,
offset: u64,
length: u32
) -> Result<Buffer, FlowReturn>
[src]
fn create(
&self,
element: &T,
offset: u64,
length: u32
) -> Result<Buffer, FlowReturn>
fn do_seek(&self, element: &T, segment: &mut Segment) -> bool
[src]
fn do_seek(&self, element: &T, segment: &mut Segment) -> bool
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 negotiate(&self, element: &T) -> bool
[src]
fn negotiate(&self, element: &T) -> bool
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