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
Failure
Success
Async
NoPreroll
Implementations
sourceimpl 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
sourceimpl Clone for StateChangeReturn
impl Clone for StateChangeReturn
sourcefn clone(&self) -> StateChangeReturn
fn clone(&self) -> StateChangeReturn
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 more
sourceimpl Debug for StateChangeReturn
impl Debug for StateChangeReturn
sourceimpl From<Result<StateChangeSuccess, StateChangeError>> for StateChangeReturn
impl From<Result<StateChangeSuccess, StateChangeError>> for StateChangeReturn
sourcefn from(res: Result<StateChangeSuccess, StateChangeError>) -> Self
fn from(res: Result<StateChangeSuccess, StateChangeError>) -> Self
Converts to this type from the input type.
sourceimpl From<StateChangeError> for StateChangeReturn
impl From<StateChangeError> for StateChangeReturn
sourcefn from(value: StateChangeError) -> Self
fn from(value: StateChangeError) -> Self
Converts to this type from the input type.
sourceimpl From<StateChangeSuccess> for StateChangeReturn
impl From<StateChangeSuccess> for StateChangeReturn
sourcefn from(value: StateChangeSuccess) -> Self
fn from(value: StateChangeSuccess) -> Self
Converts to this type from the input type.
sourceimpl<'a> FromValue<'a> for StateChangeReturn
impl<'a> FromValue<'a> for StateChangeReturn
type Checker = GenericValueTypeChecker<StateChangeReturn>
type Checker = GenericValueTypeChecker<StateChangeReturn>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl Hash for StateChangeReturn
impl Hash for StateChangeReturn
sourceimpl Ord for StateChangeReturn
impl Ord for StateChangeReturn
sourceimpl PartialEq<StateChangeReturn> for StateChangeReturn
impl PartialEq<StateChangeReturn> for StateChangeReturn
sourcefn eq(&self, other: &StateChangeReturn) -> bool
fn eq(&self, other: &StateChangeReturn) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StateChangeReturn) -> bool
fn ne(&self, other: &StateChangeReturn) -> bool
This method tests for !=
.
sourceimpl PartialOrd<StateChangeReturn> for StateChangeReturn
impl PartialOrd<StateChangeReturn> for StateChangeReturn
sourcefn partial_cmp(&self, other: &StateChangeReturn) -> Option<Ordering>
fn partial_cmp(&self, other: &StateChangeReturn) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl StaticType for StateChangeReturn
impl StaticType for StateChangeReturn
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl ToValue for StateChangeReturn
impl ToValue for StateChangeReturn
sourceimpl ValueType for StateChangeReturn
impl ValueType for StateChangeReturn
type Type = StateChangeReturn
type Type = StateChangeReturn
Type to get the Type
from. Read more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.