Struct wireplumber::spa::SpaIdValue
source · pub struct SpaIdValue { /* private fields */ }
Implementations§
source§impl SpaIdValue
impl SpaIdValue
pub fn number(&self) -> WpSpaType
pub fn name(&self) -> Option<String>
pub fn short_name(&self) -> Option<String>
pub fn value_type(&self) -> (Option<SpaType>, Option<SpaIdTable>)
pub fn array_item_type(&self) -> (Option<SpaType>, Option<SpaIdTable>)
pub fn parse_unknown_name(id_name: &str) -> Option<WpSpaType>
pub fn result_number(res: Result<Self, WpSpaType>) -> WpSpaType
Trait Implementations§
source§impl Clone for SpaIdValue
impl Clone for SpaIdValue
source§fn clone(&self) -> SpaIdValue
fn clone(&self) -> SpaIdValue
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 SpaIdValue
impl Debug for SpaIdValue
source§impl<'a> FromValue<'a> for SpaIdValue
impl<'a> FromValue<'a> for SpaIdValue
§type Checker = GenericValueTypeOrNoneChecker<SpaIdValue>
type Checker = GenericValueTypeOrNoneChecker<SpaIdValue>
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 SpaIdValue
impl Hash for SpaIdValue
source§impl IntoGlib for SpaIdValue
impl IntoGlib for SpaIdValue
source§impl OptionIntoGlib for SpaIdValue
impl OptionIntoGlib for SpaIdValue
const GLIB_NONE: WpSpaIdValue = {0x0 as *const libc::c_void}
source§impl Ord for SpaIdValue
impl Ord for SpaIdValue
source§fn cmp(&self, other: &SpaIdValue) -> Ordering
fn cmp(&self, other: &SpaIdValue) -> 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 SpaIdValue
impl PartialEq for SpaIdValue
source§fn eq(&self, other: &SpaIdValue) -> bool
fn eq(&self, other: &SpaIdValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SpaIdValue
impl PartialOrd for SpaIdValue
source§fn partial_cmp(&self, other: &SpaIdValue) -> Option<Ordering>
fn partial_cmp(&self, other: &SpaIdValue) -> 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 SpaPropertyKeyId for SpaIdValue
impl SpaPropertyKeyId for SpaIdValue
fn spa_property_key(&self) -> WpSpaType
source§impl StaticType for SpaIdValue
impl StaticType for SpaIdValue
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl TryFromGlib<*const c_void> for SpaIdValue
impl TryFromGlib<*const c_void> for SpaIdValue
type Error = GlibNoneError
unsafe fn try_from_glib(val: WpSpaIdValue) -> Result<Self, Self::Error>
source§impl UnsafeFrom<*const c_void> for SpaIdValue
impl UnsafeFrom<*const c_void> for SpaIdValue
source§unsafe fn unsafe_from(inner: WpSpaIdValue) -> Self
unsafe fn unsafe_from(inner: WpSpaIdValue) -> Self
Safety Read more
source§impl UnsafeFrom<NonNull<c_void>> for SpaIdValue
impl UnsafeFrom<NonNull<c_void>> for SpaIdValue
impl Copy for SpaIdValue
impl Eq for SpaIdValue
impl StructuralPartialEq for SpaIdValue
Auto Trait Implementations§
impl Freeze for SpaIdValue
impl RefUnwindSafe for SpaIdValue
impl !Send for SpaIdValue
impl !Sync for SpaIdValue
impl Unpin for SpaIdValue
impl UnwindSafe for SpaIdValue
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> SpaPropertyKey for Twhere
T: SpaPropertyKeyId,
impl<T> SpaPropertyKey for Twhere
T: SpaPropertyKeyId,
type Error = Infallible
fn spa_property_key_with_table( &self, _table: Option<SpaIdTable> ) -> Result<u32, <T as SpaPropertyKey>::Error>
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.