pub struct RegistryRc { /* private fields */ }
Implementations§
Source§impl RegistryRc
impl RegistryRc
Sourcepub unsafe fn from_raw(ptr: NonNull<pw_registry>, core: CoreRc) -> Self
pub unsafe fn from_raw(ptr: NonNull<pw_registry>, core: CoreRc) -> Self
Create a RegistryRc
by taking ownership of a raw pw_registry
.
§Safety
The provided pointer must point to a valid, well aligned pw_registry
.
The raw registry must not be manually destroyed or moved, as the new RegistryRc
takes
ownership of it.
pub fn downgrade(&self) -> RegistryWeak
Methods from Deref<Target = Registry>§
pub fn as_raw(&self) -> &pw_registry
pub fn as_raw_ptr(&self) -> *mut pw_registry
pub fn add_listener_local(&self) -> ListenerLocalBuilder<'_>
pub fn bind<T: ProxyT, P: AsRef<DictRef>>( &self, object: &GlobalObject<P>, ) -> Result<T, Error>
Sourcepub fn destroy_global(&self, global_id: u32) -> SpaResult
pub fn destroy_global(&self, global_id: u32) -> SpaResult
Attempt to destroy the global object with the specified id on the remote.
Trait Implementations§
Source§impl AsRef<Registry> for RegistryRc
impl AsRef<Registry> for RegistryRc
Source§impl Clone for RegistryRc
impl Clone for RegistryRc
Source§fn clone(&self) -> RegistryRc
fn clone(&self) -> RegistryRc
Returns a duplicate 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 RegistryRc
impl Debug for RegistryRc
Auto Trait Implementations§
impl Freeze for RegistryRc
impl !RefUnwindSafe for RegistryRc
impl !Send for RegistryRc
impl !Sync for RegistryRc
impl Unpin for RegistryRc
impl !UnwindSafe for RegistryRc
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