[][src]Struct gstreamer::Bus

pub struct Bus(_, _);

Implementations

impl Bus[src]

pub fn new() -> Bus[src]

pub fn add_signal_watch(&self)[src]

pub fn disable_sync_message_emission(&self)[src]

pub fn enable_sync_message_emission(&self)[src]

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

pub fn peek(&self) -> Option<Message>[src]

pub fn pop(&self) -> Option<Message>[src]

pub fn post(&self, message: &Message) -> Result<(), BoolError>[src]

pub fn remove_signal_watch(&self)[src]

pub fn remove_watch(&self) -> Result<(), BoolError>[src]

pub fn set_flushing(&self, flushing: bool)[src]

pub fn timed_pop(&self, timeout: ClockTime) -> Option<Message>[src]

pub fn connect_message<F: Fn(&Bus, &Message) + Send + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_sync_message<F: Fn(&Bus, &Message) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

impl Bus[src]

pub fn add_signal_watch_full(&self, priority: Priority)[src]

pub fn create_watch<F>(
    &self,
    name: Option<&str>,
    priority: Priority,
    func: F
) -> Source where
    F: FnMut(&Bus, &Message) -> Continue + Send + 'static, 
[src]

pub fn add_watch<F>(&self, func: F) -> Result<SourceId, BoolError> where
    F: FnMut(&Bus, &Message) -> Continue + Send + 'static, 
[src]

pub fn add_watch_local<F>(&self, func: F) -> Result<SourceId, BoolError> where
    F: FnMut(&Bus, &Message) -> Continue + 'static, 
[src]

pub fn set_sync_handler<F>(&self, func: F) where
    F: Fn(&Bus, &Message) -> BusSyncReply + Send + Sync + 'static, 
[src]

pub fn unset_sync_handler(&self)[src]

pub fn iter(&self) -> Iter<'_>

Notable traits for Iter<'a>

impl<'a> Iterator for Iter<'a> type Item = Message;
[src]

pub fn iter_timed(&self, timeout: ClockTime) -> Iter<'_>

Notable traits for Iter<'a>

impl<'a> Iterator for Iter<'a> type Item = Message;
[src]

pub fn iter_filtered<'a>(
    &'a self,
    msg_types: &'a [MessageType]
) -> impl Iterator<Item = Message> + 'a
[src]

pub fn iter_timed_filtered<'a>(
    &'a self,
    timeout: ClockTime,
    msg_types: &'a [MessageType]
) -> impl Iterator<Item = Message> + 'a
[src]

pub fn timed_pop_filtered(
    &self,
    timeout: ClockTime,
    msg_types: &[MessageType]
) -> Option<Message>
[src]

pub fn pop_filtered(&self, msg_types: &[MessageType]) -> Option<Message>[src]

pub fn stream(&self) -> BusStream[src]

pub fn stream_filtered<'a>(
    &self,
    message_types: &'a [MessageType]
) -> impl Stream<Item = Message> + Unpin + Send + 'a
[src]

Trait Implementations

impl Clone for Bus[src]

impl Debug for Bus[src]

impl Default for Bus[src]

impl Eq for Bus[src]

impl Hash for Bus[src]

impl IsA<Object> for Bus[src]

impl Ord for Bus[src]

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

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

impl Send for Bus[src]

impl StaticType for Bus[src]

impl Sync for Bus[src]

impl UnixBusExtManual for Bus[src]

impl WindowsBusExtManual for Bus[src]

Auto Trait Implementations

impl RefUnwindSafe for Bus

impl Unpin for Bus

impl UnwindSafe for Bus

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<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.