Struct wireplumber::registry::Interest
source · pub struct Interest<T: StaticType> { /* private fields */ }
Implementations§
source§impl<T: StaticType> Interest<T>
impl<T: StaticType> Interest<T>
pub fn new() -> Self
pub unsafe fn wrap_unchecked(interest: ObjectInterest) -> Self
pub fn inner(&self) -> &ObjectInterest
pub fn into_inner(self) -> ObjectInterest
pub fn matches_object<O: IsA<GObject>>(&self, object: &O) -> boolwhere
T: IsA<O>,
pub fn constrain<'o, O: IsA<GObject>>(&self, object: &'o O) -> Option<&'o T>where
T: IsA<O>,
pub fn filter<C: InterestContainer<T>>( self, container: &C ) -> IntoValueIterator<T>
pub fn lookup<C: InterestContainer<T>>(self, container: &C) -> Option<T>
Methods from Deref<Target = ObjectInterest>§
sourcepub fn as_ptr(&self) -> *mut WpObjectInterest
pub fn as_ptr(&self) -> *mut WpObjectInterest
Return the inner pointer to the underlying C value.
pub fn add_constraint( &self, type_: ConstraintType, subject: &str, verb: ConstraintVerb, value: Option<&Variant> )
pub fn matches( &self, flags: InterestMatchFlags, object_type: Type, object: Option<&impl IsA<Object>>, pw_props: Option<&Properties>, pw_global_props: Option<&Properties> ) -> InterestMatch
pub fn validate(&self) -> Result<(), Error>
pub fn matches_object<O: IsA<GObject>>(&self, object: &O) -> bool
pub fn matches_props(&self, props: &Properties) -> bool
pub fn matches_pw_object<O: IsA<PipewireObject>>(&self, object: &O) -> bool
Trait Implementations§
source§impl<T: StaticType> Deref for Interest<T>
impl<T: StaticType> Deref for Interest<T>
source§impl<C: Borrow<Constraint>, T: StaticType> Extend<C> for Interest<T>
impl<C: Borrow<Constraint>, T: StaticType> Extend<C> for Interest<T>
source§fn extend<I: IntoIterator<Item = C>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = C>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl<T: StaticType> From<Interest<T>> for ObjectInterest
impl<T: StaticType> From<Interest<T>> for ObjectInterest
source§impl<C: Borrow<Constraint>, T: StaticType> FromIterator<C> for Interest<T>
impl<C: Borrow<Constraint>, T: StaticType> FromIterator<C> for Interest<T>
source§fn from_iter<I: IntoIterator<Item = C>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = C>>(iter: I) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl<T> Freeze for Interest<T>
impl<T> RefUnwindSafe for Interest<T>where
T: RefUnwindSafe,
impl<T> !Send for Interest<T>
impl<T> !Sync for Interest<T>
impl<T> Unpin for Interest<T>where
T: Unpin,
impl<T> UnwindSafe for Interest<T>where
T: UnwindSafe,
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