[]Struct gstreamer::ElementClass

#[repr(C)]
pub struct ElementClass(_);

Methods

impl ElementClass[src]

pub fn get_metadata<'a>(&self, key: &str) -> Option<&'a str>[src]

pub fn get_pad_template(&self, name: &str) -> Option<PadTemplate>[src]

pub fn get_pad_template_list(&self) -> Vec<PadTemplate>[src]

Methods from Deref<Target = <Object as ObjectType>::RustClassType>

Trait Implementations

impl ElementClassSubclassExt for ElementClass[src]

fn add_pad_template(&mut self, pad_template: PadTemplate)[src]

fn set_metadata(
    &mut self,
    long_name: &str,
    classification: &str,
    description: &str,
    author: &str
)
[src]

impl Sync for ElementClass

impl Send for ElementClass

impl DerefMut for ElementClass

impl Deref for ElementClass

type Target = <Object as ObjectType>::RustClassType

The resulting type after dereferencing.

impl IsClassFor for ElementClass

type Instance = Element

Corresponding Rust instance type for this class.

fn get_type(&self) -> Type[src]

Get the type id for this class.

fn upcast_ref<U>(&self) -> &U where
    U: IsClassFor,
    Self::Instance: IsA<<U as IsClassFor>::Instance>,
    <U as IsClassFor>::Instance: ObjectType
[src]

Casts this class to a reference to a parent type's class.

fn upcast_ref_mut<U>(&mut self) -> &mut U where
    U: IsClassFor,
    Self::Instance: IsA<<U as IsClassFor>::Instance>,
    <U as IsClassFor>::Instance: ObjectType
[src]

Casts this class to a mutable reference to a parent type's class.

fn downcast_ref<U>(&self) -> Option<&U> where
    U: IsClassFor,
    <U as IsClassFor>::Instance: IsA<Self::Instance>,
    Self::Instance: ObjectType
[src]

Casts this class to a reference to a child type's class or fails if this class is not implementing the child class. Read more

fn downcast_ref_mut<U>(&mut self) -> Option<&mut U> where
    U: IsClassFor,
    <U as IsClassFor>::Instance: IsA<Self::Instance>,
    Self::Instance: ObjectType
[src]

Casts this class to a mutable reference to a child type's class or fails if this class is not implementing the child class. Read more

fn from_type(type_: Type) -> Option<ClassRef<Self>>[src]

Gets the class struct corresponding to type_. Read more

impl<T: ObjectSubclass + ElementImpl> IsSubclassable<T> for ElementClass where
    <T as ObjectSubclass>::Instance: PanicPoison
[src]

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]