Trait gstreamer_base::subclass::base_src::BaseSrcImpl
source · pub trait BaseSrcImpl: BaseSrcImplExt + ElementImpl {
Show 18 methods
// Provided methods
fn start(&self) -> Result<(), ErrorMessage> { ... }
fn stop(&self) -> Result<(), ErrorMessage> { ... }
fn is_seekable(&self) -> bool { ... }
fn size(&self) -> Option<u64> { ... }
fn times(
&self,
buffer: &BufferRef,
) -> (Option<ClockTime>, Option<ClockTime>) { ... }
fn fill(
&self,
offset: u64,
length: u32,
buffer: &mut BufferRef,
) -> Result<FlowSuccess, FlowError> { ... }
fn alloc(&self, offset: u64, length: u32) -> Result<Buffer, FlowError> { ... }
fn create(
&self,
offset: u64,
buffer: Option<&mut BufferRef>,
length: u32,
) -> Result<CreateSuccess, FlowError> { ... }
fn do_seek(&self, segment: &mut Segment) -> bool { ... }
fn query(&self, query: &mut QueryRef) -> bool { ... }
fn event(&self, event: &Event) -> bool { ... }
fn caps(&self, filter: Option<&Caps>) -> Option<Caps> { ... }
fn negotiate(&self) -> Result<(), LoggableError> { ... }
fn set_caps(&self, caps: &Caps) -> Result<(), LoggableError> { ... }
fn fixate(&self, caps: Caps) -> Caps { ... }
fn unlock(&self) -> Result<(), ErrorMessage> { ... }
fn unlock_stop(&self) -> Result<(), ErrorMessage> { ... }
fn decide_allocation(
&self,
query: &mut Allocation,
) -> Result<(), LoggableError> { ... }
}
Provided Methods§
fn start(&self) -> Result<(), ErrorMessage>
fn stop(&self) -> Result<(), ErrorMessage>
fn is_seekable(&self) -> bool
fn size(&self) -> Option<u64>
fn times(&self, buffer: &BufferRef) -> (Option<ClockTime>, Option<ClockTime>)
fn fill( &self, offset: u64, length: u32, buffer: &mut BufferRef, ) -> Result<FlowSuccess, FlowError>
fn alloc(&self, offset: u64, length: u32) -> Result<Buffer, FlowError>
fn create( &self, offset: u64, buffer: Option<&mut BufferRef>, length: u32, ) -> Result<CreateSuccess, FlowError>
fn do_seek(&self, segment: &mut Segment) -> bool
fn query(&self, query: &mut QueryRef) -> bool
fn event(&self, event: &Event) -> bool
fn caps(&self, filter: Option<&Caps>) -> Option<Caps>
fn negotiate(&self) -> Result<(), LoggableError>
fn set_caps(&self, caps: &Caps) -> Result<(), LoggableError>
fn fixate(&self, caps: Caps) -> Caps
fn unlock(&self) -> Result<(), ErrorMessage>
fn unlock_stop(&self) -> Result<(), ErrorMessage>
fn decide_allocation(&self, query: &mut Allocation) -> Result<(), LoggableError>
Object Safety§
This trait is not object safe.