#[repr(transparent)]
pub struct Harness(_);

Implementations§

source§

impl Harness

source

pub fn add_element_full<P: IsA<Element>>( &mut self, element: &P, hsrc: Option<&StaticPadTemplate>, element_sinkpad_name: Option<&str>, hsink: Option<&StaticPadTemplate>, element_srcpad_name: Option<&str> )

source

pub fn add_element_sink_pad<P: IsA<Pad>>(&mut self, sinkpad: &P)

source

pub fn add_element_src_pad<P: IsA<Pad>>(&mut self, srcpad: &P)

source

pub fn add_parse(&mut self, launchline: &str)

source

pub fn add_probe<F>( &mut self, element_name: &str, pad_name: &str, mask: PadProbeType, func: F )where F: Fn(&Pad, &mut PadProbeInfo<'_>) -> PadProbeReturn + Send + Sync + 'static,

source

pub fn add_propose_allocation_meta( &mut self, api: Type, params: Option<&StructureRef> )

Available on crate feature v1_16 only.
source

pub fn add_sink(&mut self, sink_element_name: &str)

source

pub fn add_sink_harness(&mut self, sink_harness: Harness)

source

pub fn add_sink_parse(&mut self, launchline: &str)

source

pub fn add_src(&mut self, src_element_name: &str, has_clock_wait: bool)

source

pub fn add_src_harness(&mut self, src_harness: Harness, has_clock_wait: bool)

source

pub fn add_src_parse(&mut self, launchline: &str, has_clock_wait: bool)

source

pub fn buffers_in_queue(&self) -> u32

source

pub fn buffers_received(&self) -> u32

source

pub fn crank_multiple_clock_waits(&mut self, waits: u32) -> Result<(), BoolError>

source

pub fn crank_single_clock_wait(&mut self) -> Result<(), BoolError>

source

pub fn create_buffer(&mut self, size: usize) -> Result<Buffer, BoolError>

source

pub fn dump_to_file(&mut self, filename: impl AsRef<Path>)

source

pub fn events_in_queue(&self) -> u32

source

pub fn events_received(&self) -> u32

source

pub fn find_element(&mut self, element_name: &str) -> Option<Element>

source

pub fn last_pushed_timestamp(&self) -> Option<ClockTime>

source

pub fn testclock(&self) -> Option<TestClock>

source

pub fn play(&mut self)

source

pub fn pull(&mut self) -> Result<Buffer, BoolError>

source

pub fn pull_until_eos(&mut self) -> Result<Option<Buffer>, BoolError>

Available on crate feature v1_18 only.
source

pub fn pull_event(&mut self) -> Result<Event, BoolError>

source

pub fn pull_upstream_event(&mut self) -> Result<Event, BoolError>

source

pub fn push(&mut self, buffer: Buffer) -> Result<FlowSuccess, FlowError>

source

pub fn push_and_pull(&mut self, buffer: Buffer) -> Result<Buffer, BoolError>

source

pub fn push_event(&mut self, event: Event) -> bool

source

pub fn push_from_src(&mut self) -> Result<FlowSuccess, FlowError>

source

pub fn push_to_sink(&mut self) -> Result<FlowSuccess, FlowError>

source

pub fn push_upstream_event(&mut self, event: Event) -> bool

source

pub fn query_latency(&self) -> Option<ClockTime>

source

pub fn set_blocking_push_mode(&mut self)

source

pub fn set_caps(&mut self, in_: Caps, out: Caps)

source

pub fn set_caps_str(&mut self, in_: &str, out: &str)

source

pub fn set_drop_buffers(&mut self, drop_buffers: bool)

source

pub fn set_forwarding(&mut self, forwarding: bool)

source

pub fn set_live(&mut self, is_live: bool)

Available on crate feature v1_20 only.
source

pub fn set_sink_caps(&mut self, caps: Caps)

source

pub fn set_sink_caps_str(&mut self, str: &str)

source

pub fn set_src_caps(&mut self, caps: Caps)

source

pub fn set_src_caps_str(&mut self, str: &str)

source

pub fn set_time(&mut self, time: ClockTime) -> Result<(), BoolError>

source

pub fn set_upstream_latency(&mut self, latency: ClockTime)

source

pub fn sink_push_many(&mut self, pushes: u32) -> Result<FlowSuccess, FlowError>

source

pub fn src_crank_and_push_many( &mut self, cranks: u32, pushes: u32 ) -> Result<FlowSuccess, FlowError>

source

pub fn src_push_event(&mut self) -> bool

source

pub fn take_all_data_as_buffer(&mut self) -> Result<Buffer, BoolError>

source

pub fn take_all_data_as_bytes(&mut self) -> Result<Bytes, BoolError>

source

pub fn try_pull(&mut self) -> Option<Buffer>

source

pub fn try_pull_event(&mut self) -> Option<Event>

source

pub fn try_pull_upstream_event(&mut self) -> Option<Event>

source

pub fn upstream_events_in_queue(&self) -> u32

source

pub fn upstream_events_received(&self) -> u32

source

pub fn use_systemclock(&mut self)

source

pub fn use_testclock(&mut self)

source

pub fn wait_for_clock_id_waits( &mut self, waits: u32, timeout: u32 ) -> Result<(), BoolError>

source

pub fn new(element_name: &str) -> Harness

source

pub fn new_empty() -> Harness

source

pub fn new_full<P: IsA<Element>>( element: &P, hsrc: Option<&StaticPadTemplate>, element_sinkpad_name: Option<&str>, hsink: Option<&StaticPadTemplate>, element_srcpad_name: Option<&str> ) -> Harness

source

pub fn new_parse(launchline: &str) -> Harness

source

pub fn with_element<P: IsA<Element>>( element: &P, element_sinkpad_name: Option<&str>, element_srcpad_name: Option<&str> ) -> Harness

source

pub fn with_padnames( element_name: &str, element_sinkpad_name: Option<&str>, element_srcpad_name: Option<&str> ) -> Harness

source

pub fn with_templates( element_name: &str, hsrc: Option<&StaticPadTemplate>, hsink: Option<&StaticPadTemplate> ) -> Harness

source

pub fn element(&self) -> Option<Element>

source

pub fn sinkpad(&self) -> Option<Pad>

source

pub fn srcpad(&self) -> Option<Pad>

source

pub fn sink_harness(&self) -> Option<Ref<'_>>

source

pub fn src_harness(&self) -> Option<Ref<'_>>

source

pub fn sink_harness_mut(&mut self) -> Option<RefMut<'_>>

source

pub fn src_harness_mut(&mut self) -> Option<RefMut<'_>>

Trait Implementations§

source§

impl Debug for Harness

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drop for Harness

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Send for Harness

source§

impl Sync for Harness

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.