Enum gstreamer::StateChangeReturn
source · #[repr(i32)]pub enum StateChangeReturn {
Failure = 0,
Success = 1,
Async = 2,
NoPreroll = 3,
}
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<StateChangeReturn> for Value
impl From<StateChangeReturn> for Value
source§fn from(v: StateChangeReturn) -> Self
fn from(v: StateChangeReturn) -> 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
source§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 HasParamSpec for StateChangeReturn
impl HasParamSpec for StateChangeReturn
type ParamSpec = ParamSpecEnum
source§type SetValue = StateChangeReturn
type SetValue = StateChangeReturn
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: StateChangeReturn) -> ParamSpecEnumBuilder<'_, StateChangeReturn>
fn param_spec_builder() -> Self::BuilderFn
source§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 for StateChangeReturn
impl PartialEq for StateChangeReturn
source§impl PartialOrd for StateChangeReturn
impl PartialOrd for StateChangeReturn
source§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
source§type Type = StateChangeReturn
type Type = StateChangeReturn
Type to get the
Type
from. Read moreimpl Copy for StateChangeReturn
impl Eq for StateChangeReturn
impl StructuralPartialEq for StateChangeReturn
Auto Trait Implementations§
impl Freeze for StateChangeReturn
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> 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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
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> 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
.