Enum gstreamer::PadPresence
source · #[repr(i32)]pub enum PadPresence {
Always = 0,
Sometimes = 1,
Request = 2,
}
Expand description
Indicates when this pad will become available.
Variants§
Always = 0
the pad is always available
Sometimes = 1
the pad will become available depending on the media stream
Request = 2
the pad is only available on request with
ElementExt::request_pad()
.
Trait Implementations§
source§impl Clone for PadPresence
impl Clone for PadPresence
source§fn clone(&self) -> PadPresence
fn clone(&self) -> PadPresence
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 PadPresence
impl Debug for PadPresence
source§impl<'de> Deserialize<'de> for PadPresence
impl<'de> Deserialize<'de> for PadPresence
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<PadPresence> for Value
impl From<PadPresence> for Value
source§fn from(v: PadPresence) -> Self
fn from(v: PadPresence) -> Self
Converts to this type from the input type.
source§impl<'a> FromValue<'a> for PadPresence
impl<'a> FromValue<'a> for PadPresence
§type Checker = GenericValueTypeChecker<PadPresence>
type Checker = GenericValueTypeChecker<PadPresence>
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 PadPresence
impl HasParamSpec for PadPresence
type ParamSpec = ParamSpecEnum
§type SetValue = PadPresence
type SetValue = PadPresence
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: PadPresence) -> ParamSpecEnumBuilder<'_, PadPresence>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for PadPresence
impl Hash for PadPresence
source§impl Ord for PadPresence
impl Ord for PadPresence
source§fn cmp(&self, other: &PadPresence) -> Ordering
fn cmp(&self, other: &PadPresence) -> 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 PadPresence
impl PartialEq for PadPresence
source§impl PartialOrd for PadPresence
impl PartialOrd for PadPresence
source§impl Serialize for PadPresence
impl Serialize for PadPresence
source§impl StaticType for PadPresence
impl StaticType for PadPresence
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for PadPresence
impl ToValue for PadPresence
source§impl ValueType for PadPresence
impl ValueType for PadPresence
§type Type = PadPresence
type Type = PadPresence
Type to get the
Type
from. Read moreimpl Copy for PadPresence
impl Eq for PadPresence
impl StructuralPartialEq for PadPresence
Auto Trait Implementations§
impl Freeze for PadPresence
impl RefUnwindSafe for PadPresence
impl Send for PadPresence
impl Sync for PadPresence
impl Unpin for PadPresence
impl UnwindSafe for PadPresence
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
.