Struct gstreamer::StaticCaps[][src]

pub struct StaticCaps(_);

Datastructure to initialize crate::Caps from a string description usually used in conjunction with GST_STATIC_CAPS() and Self::get() to instantiate a crate::Caps.

Implementations

impl StaticCaps[src]

pub fn get(&self) -> Caps[src]

Converts a crate::StaticCaps to a crate::Caps.

Returns

a pointer to the crate::Caps. Unref after usage. Since the core holds an additional ref to the returned caps, use gst_caps_make_writable() on the returned caps to modify it.

Trait Implementations

impl Debug for StaticCaps[src]

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

Formats the value using the given formatter. Read more

impl StaticType for StaticCaps[src]

fn static_type() -> Type[src]

Returns the type identifier of Self.

impl ValueType for StaticCaps[src]

type Type = Self

Type to get the Type from. Read more

impl Send for StaticCaps[src]

impl Sync for StaticCaps[src]

Auto Trait Implementations

impl RefUnwindSafe for StaticCaps

impl Unpin for StaticCaps

impl UnwindSafe for StaticCaps

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToSendValue for T where
    T: Send + ToValue + ?Sized
[src]

pub fn to_send_value(&self) -> SendValue[src]

Returns a SendValue clone of self.

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.

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

Performs the conversion.

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.

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

Performs the conversion.

impl<'a, T, C> FromValueOptional<'a> for T where
    C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
    T: FromValue<'a, Checker = C>, 
[src]