[][src]Struct gstreamer::StreamCollection

pub struct StreamCollection(_, _);

A collection of Stream that are available.

A StreamCollection will be provided by elements that can make those streams available. Applications can use the collection to show the user what streams are available by using StreamCollection::get_stream()

Once posted, a StreamCollection is immutable. Updates are made by sending a new StreamCollection message, which may or may not share some of the Stream objects from the collection it replaces. The receiver can check the sender of a stream collection message to know which collection is obsoleted.

Several elements in a pipeline can provide StreamCollection.

Applications can activate streams from a collection by using the EventType::SelectStreams event on a pipeline, bin or element.

Feature: v1_10

Implements

GstObjectExt, glib::object::ObjectExt

Methods

impl StreamCollection[src]

pub fn get_size(&self) -> u32[src]

Get the number of streams this collection contains

Feature: v1_10

Returns

The number of streams that self contains

pub fn get_stream(&self, index: u32) -> Option<Stream>[src]

Retrieve the Stream with index index from the collection.

The caller should not modify the returned Stream

Feature: v1_10

index

Index of the stream to retrieve

Returns

A Stream

pub fn get_upstream_id(&self) -> Option<GString>[src]

Returns the upstream id of the self.

Feature: v1_10

Returns

The upstream id

impl StreamCollection[src]

pub fn builder(upstream_id: Option<&str>) -> StreamCollectionBuilder[src]

pub fn iter(&self) -> Iter[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn debug(&self) -> Debug[src]

Trait Implementations

impl Clone for StreamCollection[src]

impl Debug for StreamCollection[src]

impl Eq for StreamCollection[src]

impl Hash for StreamCollection[src]

impl IsA<Object> for StreamCollection[src]

impl Ord for StreamCollection[src]

impl<T: ObjectType> PartialEq<T> for StreamCollection[src]

impl<T: ObjectType> PartialOrd<T> for StreamCollection[src]

impl Send for StreamCollection[src]

impl StaticType for StreamCollection[src]

impl Sync for StreamCollection[src]

Auto Trait Implementations

impl RefUnwindSafe for StreamCollection

impl Unpin for StreamCollection

impl UnwindSafe for StreamCollection

Blanket Implementations

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

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

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

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

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

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

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> ToValue for T where
    T: SetValue + ?Sized
[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.