Struct gstreamer::GhostPad [−]
pub struct GhostPad(_, _);
GhostPads are useful when organizing pipelines with Bin like elements.
The idea here is to create hierarchical element graphs. The bin element
contains a sub-graph. Now one would like to treat the bin-element like any
other Element. This is where GhostPads come into play. A GhostPad acts as
a proxy for another pad. Thus the bin can have sink and source ghost-pads
that are associated with sink and source pads of the child elements.
If the target pad is known at creation time, GhostPad::new is the
function to use to get a ghost-pad. Otherwise one can use GhostPad::new_no_target
to create the ghost-pad and use GhostPadExt::set_target to establish the
association later on.
Note that GhostPads add overhead to the data processing of a pipeline.
Implements
GhostPadExt, ProxyPadExt, PadExt, GstObjectExt, glib::object::ObjectExt
Methods
impl GhostPad[src] 
impl GhostPadpub fn new_no_target<'a, P: Into<Option<&'a str>>>(
    name: P, 
    dir: PadDirection
) -> GhostPad[src] 
pub fn new_no_target<'a, P: Into<Option<&'a str>>>(
    name: P, 
    dir: PadDirection
) -> GhostPadCreate a new ghostpad without a target with the given direction.
A target can be set on the ghostpad later with the
GhostPadExt::set_target function.
The created ghostpad will not have a padtemplate.
name
the name of the new pad, or None to assign a default name.
dir
the direction of the ghostpad
Returns
a new Pad, or None in
case of an error.
pub fn new_no_target_from_template<'a, P: Into<Option<&'a str>>>(
    name: P, 
    templ: &PadTemplate
) -> GhostPad[src] 
pub fn new_no_target_from_template<'a, P: Into<Option<&'a str>>>(
    name: P, 
    templ: &PadTemplate
) -> GhostPadimpl GhostPad[src] 
impl GhostPadpub fn new<'a, P: Into<Option<&'a str>>, Q: IsA<Pad>>(
    name: P, 
    target: &Q
) -> Option<GhostPad>[src] 
pub fn new<'a, P: Into<Option<&'a str>>, Q: IsA<Pad>>(
    name: P, 
    target: &Q
) -> Option<GhostPad>Create a new ghostpad with target as the target. The direction will be taken
from the target pad. target must be unlinked.
Will ref the target.
name
the name of the new pad, or None to assign a default name
target
the pad to ghost.
Returns
a new Pad, or None in
case of an error.
pub fn new_from_template<'a, P: Into<Option<&'a str>>, Q: IsA<Pad>>(
    name: P, 
    target: &Q, 
    templ: &PadTemplate
) -> Option<GhostPad>[src] 
pub fn new_from_template<'a, P: Into<Option<&'a str>>, Q: IsA<Pad>>(
    name: P, 
    target: &Q, 
    templ: &PadTemplate
) -> Option<GhostPad>Create a new ghostpad with target as the target. The direction will be taken
from the target pad. The template used on the ghostpad will be template.
Will ref the target.
name
the name of the new pad, or None to assign a default name.
target
the pad to ghost.
templ
the PadTemplate to use on the ghostpad.
Returns
a new Pad, or None in
case of an error.
pub fn activate_mode_default<'a, P: IsA<GhostPad>, Q: IsA<Object> + 'a, R: Into<Option<&'a Q>>>(
    pad: &P, 
    parent: R, 
    mode: PadMode, 
    active: bool
) -> bool[src] 
pub fn activate_mode_default<'a, P: IsA<GhostPad>, Q: IsA<Object> + 'a, R: Into<Option<&'a Q>>>(
    pad: &P, 
    parent: R, 
    mode: PadMode, 
    active: bool
) -> boolInvoke the default activate mode function of a ghost pad.
pad
the Pad to activate or deactivate.
parent
the parent of pad or None
mode
the requested activation mode
active
whether the pad should be active or not.
Returns
true if the operation was successful.
pub fn internal_activate_mode_default<'a, P: IsA<GhostPad>, Q: IsA<Object> + 'a, R: Into<Option<&'a Q>>>(
    pad: &P, 
    parent: R, 
    mode: PadMode, 
    active: bool
) -> bool[src] 
pub fn internal_activate_mode_default<'a, P: IsA<GhostPad>, Q: IsA<Object> + 'a, R: Into<Option<&'a Q>>>(
    pad: &P, 
    parent: R, 
    mode: PadMode, 
    active: bool
) -> boolTrait Implementations
impl Clone for GhostPad
impl Clone for GhostPadfn clone(&self) -> GhostPad
fn clone(&self) -> GhostPadReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Hash for GhostPad
impl Hash for GhostPadfn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, 1.3.0[src] 
fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Ord for GhostPad
impl Ord for GhostPadfn cmp(&self, other: &GhostPad) -> Ordering
fn cmp(&self, other: &GhostPad) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src] 
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src] 
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl StaticType for GhostPad
impl StaticType for GhostPadfn static_type() -> Type
fn static_type() -> TypeReturns the type identifier of Self.
impl<T: IsA<Object>> PartialEq<T> for GhostPad
impl<T: IsA<Object>> PartialEq<T> for GhostPadfn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src] 
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for GhostPad
impl Eq for GhostPadimpl<T: IsA<Object>> PartialOrd<T> for GhostPad
impl<T: IsA<Object>> PartialOrd<T> for GhostPadfn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src] 
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src] 
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src] 
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src] 
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Debug for GhostPad
impl Debug for GhostPadimpl IsA<ProxyPad> for GhostPad
impl IsA<ProxyPad> for GhostPadimpl IsA<Pad> for GhostPad
impl IsA<Pad> for GhostPadimpl IsA<Object> for GhostPad
impl IsA<Object> for GhostPadimpl IsA<Object> for GhostPad
impl IsA<Object> for GhostPadimpl Send for GhostPad[src] 
impl Send for GhostPadimpl Sync for GhostPad[src] 
impl Sync for GhostPad