Enum gstreamer::StateChangeReturn
source · #[non_exhaustive]
pub enum StateChangeReturn {
Failure,
Success,
Async,
NoPreroll,
// some variants omitted
}
Variants (Non-exhaustive)§
This enum is marked as 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.
Implementations§
source§impl StateChangeReturn
impl StateChangeReturn
pub fn into_result(self) -> Result<StateChangeSuccess, StateChangeError>
pub fn from_error(_: StateChangeError) -> Self
pub fn from_ok(v: StateChangeSuccess) -> Self
Trait Implementations§
source§impl Clone for StateChangeReturn
impl Clone for StateChangeReturn
source§fn clone(&self) -> StateChangeReturn
fn clone(&self) -> StateChangeReturn
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 StateChangeReturn
impl Debug for StateChangeReturn
source§impl From<Result<StateChangeSuccess, StateChangeError>> for StateChangeReturn
impl From<Result<StateChangeSuccess, StateChangeError>> for StateChangeReturn
source§fn from(res: Result<StateChangeSuccess, StateChangeError>) -> Self
fn from(res: Result<StateChangeSuccess, StateChangeError>) -> Self
Converts to this type from the input type.
source§impl From<StateChangeError> for StateChangeReturn
impl From<StateChangeError> for StateChangeReturn
source§fn from(value: StateChangeError) -> Self
fn from(value: StateChangeError) -> Self
Converts to this type from the input type.
source§impl From<StateChangeSuccess> for StateChangeReturn
impl From<StateChangeSuccess> for StateChangeReturn
source§fn from(value: StateChangeSuccess) -> Self
fn from(value: StateChangeSuccess) -> Self
Converts to this type from the input type.
source§impl<'a> FromValue<'a> for StateChangeReturn
impl<'a> FromValue<'a> for StateChangeReturn
§type Checker = GenericValueTypeChecker<StateChangeReturn>
type Checker = GenericValueTypeChecker<StateChangeReturn>
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 StateChangeReturn
impl Hash for StateChangeReturn
source§impl Ord for StateChangeReturn
impl Ord for StateChangeReturn
source§fn cmp(&self, other: &StateChangeReturn) -> Ordering
fn cmp(&self, other: &StateChangeReturn) -> 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<StateChangeReturn> for StateChangeReturn
impl PartialEq<StateChangeReturn> for StateChangeReturn
source§fn eq(&self, other: &StateChangeReturn) -> bool
fn eq(&self, other: &StateChangeReturn) -> bool
source§impl PartialOrd<StateChangeReturn> for StateChangeReturn
impl PartialOrd<StateChangeReturn> for StateChangeReturn
source§fn partial_cmp(&self, other: &StateChangeReturn) -> Option<Ordering>
fn partial_cmp(&self, other: &StateChangeReturn) -> 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 StateChangeReturn
impl StaticType for StateChangeReturn
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for StateChangeReturn
impl ToValue for StateChangeReturn
source§impl ValueType for StateChangeReturn
impl ValueType for StateChangeReturn
§type Type = StateChangeReturn
type Type = StateChangeReturn
Type to get the
Type
from. Read moreimpl Copy for StateChangeReturn
impl Eq for StateChangeReturn
impl StructuralEq for StateChangeReturn
impl StructuralPartialEq for StateChangeReturn
Auto Trait Implementations§
impl RefUnwindSafe for StateChangeReturn
impl Send for StateChangeReturn
impl Sync for StateChangeReturn
impl Unpin for StateChangeReturn
impl UnwindSafe for StateChangeReturn
Blanket Implementations§
source§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> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.