[][src]Enum gstreamer::PadProbeReturn

#[non_exhaustive]pub enum PadProbeReturn {
    Drop,
    Ok,
    Remove,
    Pass,
    Handled,
    // some variants omitted
}

Different return values for the GstPadProbeCallback.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Drop

drop data in data probes. For push mode this means that the data item is not sent downstream. For pull mode, it means that the data item is not passed upstream. In both cases, no other probes are called for this item and FlowReturn::Ok or true is returned to the caller.

Ok

normal probe return value. This leaves the probe in place, and defers decisions about dropping or passing data to other probes, if any. If there are no other probes, the default behaviour for the probe type applies ('block' for blocking probes, and 'pass' for non-blocking probes).

Remove

remove this probe.

Pass

pass the data item in the block probe and block on the next item.

Handled

Data has been handled in the probe and will not be forwarded further. For events and buffers this is the same behaviour as PadProbeReturn::Drop (except that in this case you need to unref the buffer or event yourself). For queries it will also return true to the caller. The probe can also modify the FlowReturn value by using the GST_PAD_PROBE_INFO_FLOW_RETURN() accessor. Note that the resulting query must contain valid entries. Since: 1.6

Trait Implementations

impl Clone for PadProbeReturn[src]

impl Copy for PadProbeReturn[src]

impl Debug for PadProbeReturn[src]

impl Eq for PadProbeReturn[src]

impl<'a> FromValue<'a> for PadProbeReturn[src]

impl<'a> FromValueOptional<'a> for PadProbeReturn[src]

impl Hash for PadProbeReturn[src]

impl Ord for PadProbeReturn[src]

impl PartialEq<PadProbeReturn> for PadProbeReturn[src]

impl PartialOrd<PadProbeReturn> for PadProbeReturn[src]

impl SetValue for PadProbeReturn[src]

impl StaticType for PadProbeReturn[src]

impl StructuralEq for PadProbeReturn[src]

impl StructuralPartialEq for PadProbeReturn[src]

Auto Trait Implementations

impl RefUnwindSafe for PadProbeReturn

impl Send for PadProbeReturn

impl Sync for PadProbeReturn

impl Unpin for PadProbeReturn

impl UnwindSafe for PadProbeReturn

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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.