Enum gstreamer::FlowReturn
source · #[repr(i32)]pub enum FlowReturn {
Show 13 variants
CustomSuccess2 = 102,
CustomSuccess1 = 101,
CustomSuccess = 100,
Ok = 0,
NotLinked = -1,
Flushing = -2,
Eos = -3,
NotNegotiated = -4,
Error = -5,
NotSupported = -6,
CustomError = -100,
CustomError1 = -101,
CustomError2 = -102,
}
Variants§
CustomSuccess2 = 102
CustomSuccess1 = 101
CustomSuccess = 100
Ok = 0
NotLinked = -1
Flushing = -2
Eos = -3
NotNegotiated = -4
Error = -5
NotSupported = -6
CustomError = -100
CustomError1 = -101
CustomError2 = -102
Implementations§
source§impl 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§
source§impl Clone for FlowReturn
impl Clone for FlowReturn
source§fn clone(&self) -> FlowReturn
fn clone(&self) -> FlowReturn
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FlowReturn
impl Debug for FlowReturn
source§impl<'a> From<&'a FlowError> for FlowReturn
impl<'a> From<&'a FlowError> for FlowReturn
source§fn from(err: &FlowError) -> FlowReturn
fn from(err: &FlowError) -> FlowReturn
Converts to this type from the input type.
source§impl From<FlowError> for FlowReturn
impl From<FlowError> for FlowReturn
source§impl From<FlowError> for FlowReturn
impl From<FlowError> for FlowReturn
source§impl From<FlowReturn> for Value
impl From<FlowReturn> for Value
source§fn from(v: FlowReturn) -> Self
fn from(v: FlowReturn) -> Self
Converts to this type from the input type.
source§impl From<FlowSuccess> for FlowReturn
impl From<FlowSuccess> for FlowReturn
source§fn from(value: FlowSuccess) -> Self
fn from(value: FlowSuccess) -> Self
Converts to this type from the input type.
source§impl From<Result<FlowSuccess, FlowError>> for FlowReturn
impl From<Result<FlowSuccess, FlowError>> for FlowReturn
source§impl<'a> FromValue<'a> for FlowReturn
impl<'a> FromValue<'a> for FlowReturn
§type Checker = GenericValueTypeChecker<FlowReturn>
type Checker = GenericValueTypeChecker<FlowReturn>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl Hash for FlowReturn
impl Hash for FlowReturn
source§impl Ord for FlowReturn
impl Ord for FlowReturn
source§fn cmp(&self, other: &FlowReturn) -> Ordering
fn cmp(&self, other: &FlowReturn) -> Ordering
1.21.0 · source§fn 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
source§impl PartialEq for FlowReturn
impl PartialEq for FlowReturn
source§fn eq(&self, other: &FlowReturn) -> bool
fn eq(&self, other: &FlowReturn) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FlowReturn
impl PartialOrd for FlowReturn
source§fn partial_cmp(&self, other: &FlowReturn) -> Option<Ordering>
fn partial_cmp(&self, other: &FlowReturn) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl StaticType for FlowReturn
impl StaticType for FlowReturn
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for FlowReturn
impl ToValue for FlowReturn
source§impl ValueType for FlowReturn
impl ValueType for FlowReturn
§type Type = FlowReturn
type Type = FlowReturn
Type to get the
Type
from. Read moreimpl Copy for FlowReturn
impl Eq for FlowReturn
impl StructuralPartialEq for FlowReturn
Auto Trait Implementations§
impl Freeze for FlowReturn
impl RefUnwindSafe for FlowReturn
impl Send for FlowReturn
impl Sync for FlowReturn
impl Unpin for FlowReturn
impl UnwindSafe for FlowReturn
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.