Enum wireplumber::registry::ConstraintType
source · #[non_exhaustive]pub enum ConstraintType {
None,
PwGlobalProperty,
PwProperty,
GProperty,
}
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§
Trait Implementations§
source§impl Clone for ConstraintType
impl Clone for ConstraintType
source§fn clone(&self) -> ConstraintType
fn clone(&self) -> ConstraintType
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 ConstraintType
impl Debug for ConstraintType
source§impl Default for ConstraintType
impl Default for ConstraintType
source§impl<'de> Deserialize<'de> for ConstraintType
impl<'de> Deserialize<'de> for ConstraintType
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ConstraintType
impl Display for ConstraintType
source§impl From<ConstraintType> for Value
impl From<ConstraintType> for Value
source§fn from(v: ConstraintType) -> Self
fn from(v: ConstraintType) -> Self
Converts to this type from the input type.
source§impl From<ConstraintType> for Variant
impl From<ConstraintType> for Variant
source§fn from(t: ConstraintType) -> Self
fn from(t: ConstraintType) -> Self
Converts to this type from the input type.
source§impl FromStr for ConstraintType
impl FromStr for ConstraintType
source§impl<'a> FromValue<'a> for ConstraintType
impl<'a> FromValue<'a> for ConstraintType
§type Checker = GenericValueTypeChecker<ConstraintType>
type Checker = GenericValueTypeChecker<ConstraintType>
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 FromVariant for ConstraintType
impl FromVariant for ConstraintType
source§impl HasParamSpec for ConstraintType
impl HasParamSpec for ConstraintType
type ParamSpec = ParamSpecEnum
§type SetValue = ConstraintType
type SetValue = ConstraintType
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: ConstraintType) -> ParamSpecEnumBuilder<'_, ConstraintType>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for ConstraintType
impl Hash for ConstraintType
source§impl Ord for ConstraintType
impl Ord for ConstraintType
source§fn cmp(&self, other: &ConstraintType) -> Ordering
fn cmp(&self, other: &ConstraintType) -> 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 ConstraintType
impl PartialEq for ConstraintType
source§fn eq(&self, other: &ConstraintType) -> bool
fn eq(&self, other: &ConstraintType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ConstraintType
impl PartialOrd for ConstraintType
source§fn partial_cmp(&self, other: &ConstraintType) -> Option<Ordering>
fn partial_cmp(&self, other: &ConstraintType) -> 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 Serialize for ConstraintType
impl Serialize for ConstraintType
source§impl StaticType for ConstraintType
impl StaticType for ConstraintType
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl StaticVariantType for ConstraintType
impl StaticVariantType for ConstraintType
source§fn static_variant_type() -> Cow<'static, VariantTy>
fn static_variant_type() -> Cow<'static, VariantTy>
Returns the
VariantType
corresponding to Self
.source§impl ToValue for ConstraintType
impl ToValue for ConstraintType
source§impl ToVariant for ConstraintType
impl ToVariant for ConstraintType
source§fn to_variant(&self) -> Variant
fn to_variant(&self) -> Variant
Returns a
Variant
clone of self
.source§impl ValueType for ConstraintType
impl ValueType for ConstraintType
§type Type = ConstraintType
type Type = ConstraintType
Type to get the
Type
from. Read moreimpl Copy for ConstraintType
impl Eq for ConstraintType
impl StructuralPartialEq for ConstraintType
Auto Trait Implementations§
impl Freeze for ConstraintType
impl RefUnwindSafe for ConstraintType
impl Send for ConstraintType
impl Sync for ConstraintType
impl Unpin for ConstraintType
impl UnwindSafe for ConstraintType
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> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§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
.