Enum gstreamer::FlowReturn
source · pub enum FlowReturn {
Show 13 variants
CustomSuccess2,
CustomSuccess1,
CustomSuccess,
Ok,
NotLinked,
Flushing,
Eos,
NotNegotiated,
Error,
NotSupported,
CustomError,
CustomError1,
CustomError2,
// some variants omitted
}
Variants
CustomSuccess2
CustomSuccess1
CustomSuccess
Ok
NotLinked
Flushing
Eos
NotNegotiated
Error
NotSupported
CustomError
CustomError1
CustomError2
Implementations
sourceimpl FlowReturn
impl FlowReturn
pub fn into_result(self) -> Result<FlowSuccess, FlowError>
pub fn from_error(v: FlowError) -> Self
pub fn from_ok(v: FlowSuccess) -> Self
Trait Implementations
sourceimpl Clone for FlowReturn
impl Clone for FlowReturn
sourcefn clone(&self) -> FlowReturn
fn clone(&self) -> FlowReturn
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FlowReturn
impl Debug for FlowReturn
sourceimpl From<FlowError> for FlowReturn
impl From<FlowError> for FlowReturn
sourceimpl From<FlowSuccess> for FlowReturn
impl From<FlowSuccess> for FlowReturn
sourcefn from(value: FlowSuccess) -> Self
fn from(value: FlowSuccess) -> Self
Converts to this type from the input type.
sourceimpl<'a> FromValue<'a> for FlowReturn
impl<'a> FromValue<'a> for FlowReturn
unsafe fn from_value(value: &Value) -> Self
sourceimpl<'a> FromValueOptional<'a> for FlowReturn
impl<'a> FromValueOptional<'a> for FlowReturn
unsafe fn from_value_optional(value: &Value) -> Option<Self>
sourceimpl Hash for FlowReturn
impl Hash for FlowReturn
sourceimpl Ord for FlowReturn
impl Ord for FlowReturn
sourcefn cmp(&self, other: &FlowReturn) -> Ordering
fn cmp(&self, other: &FlowReturn) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<FlowReturn> for FlowReturn
impl PartialEq<FlowReturn> for FlowReturn
sourcefn eq(&self, other: &FlowReturn) -> bool
fn eq(&self, other: &FlowReturn) -> bool
sourceimpl PartialOrd<FlowReturn> for FlowReturn
impl PartialOrd<FlowReturn> for FlowReturn
sourcefn partial_cmp(&self, other: &FlowReturn) -> Option<Ordering>
fn partial_cmp(&self, other: &FlowReturn) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl StaticType for FlowReturn
impl StaticType for FlowReturn
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for FlowReturn
impl Eq for FlowReturn
impl StructuralEq for FlowReturn
impl StructuralPartialEq for FlowReturn
Auto Trait Implementations
impl RefUnwindSafe for FlowReturn
impl Send for FlowReturn
impl Sync for FlowReturn
impl Unpin for FlowReturn
impl UnwindSafe for FlowReturn
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.