Enum gstreamer::PadProbeReturn [−][src]
#[non_exhaustive] pub enum PadProbeReturn { Drop, Ok, Remove, Pass, Handled, // some variants omitted }
Expand description
Different return values for the GstPadProbeCallback
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
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.
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 this probe, passing the data. For blocking probes this will cause data flow to unblock, unless there are also other blocking probes installed.
pass the data item in the block probe and block on the next item. Note, that if there are multiple pad probes installed and any probe returns PASS, the data will be passed.
Data has been handled in the probe and will not be
forwarded further. For events and buffers this is the same behaviour as
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
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
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
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.