Trait gstreamer::prelude::GhostPadExt[][src]

pub trait GhostPadExt: 'static {
    fn target(&self) -> Option<Pad>;
fn set_target<P: IsA<Pad>>(
        &self,
        newtarget: Option<&P>
    ) -> Result<(), BoolError>; }

Trait containing all GhostPad methods.

Implementors

crate::GhostPad

Required methods

fn target(&self) -> Option<Pad>[src]

Get the target pad of self. Unref target pad after usage.

Returns

the target crate::Pad, can be None if the ghostpad has no target set. Unref target pad after usage.

fn set_target<P: IsA<Pad>>(
    &self,
    newtarget: Option<&P>
) -> Result<(), BoolError>
[src]

Set the new target of the ghostpad self. Any existing target is unlinked and links to the new target are established. if newtarget is None the target will be cleared.

newtarget

the new pad target

Returns

true if the new target could be set. This function can return false when the internal pads could not be linked.

Loading content...

Implementors

impl<O: IsA<GhostPad>> GhostPadExt for O[src]

fn target(&self) -> Option<Pad>[src]

fn set_target<P: IsA<Pad>>(
    &self,
    newtarget: Option<&P>
) -> Result<(), BoolError>
[src]

Loading content...