pub struct RegistryBox<'c> { /* private fields */ }
Implementations§
Source§impl<'c> RegistryBox<'c>
impl<'c> RegistryBox<'c>
Sourcepub unsafe fn from_raw(ptr: NonNull<pw_registry>) -> Self
pub unsafe fn from_raw(ptr: NonNull<pw_registry>) -> Self
Create a RegistryBox
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 RegistryBox
takes
ownership of it.
The lifetime of the returned box is unbounded. The caller is responsible to make sure that the core used with this registry outlives the registry.
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<'c> AsRef<Registry> for RegistryBox<'c>
impl<'c> AsRef<Registry> for RegistryBox<'c>
Source§impl<'c> Debug for RegistryBox<'c>
impl<'c> Debug for RegistryBox<'c>
Source§impl<'c> Deref for RegistryBox<'c>
impl<'c> Deref for RegistryBox<'c>
Auto Trait Implementations§
impl<'c> Freeze for RegistryBox<'c>
impl<'c> RefUnwindSafe for RegistryBox<'c>
impl<'c> !Send for RegistryBox<'c>
impl<'c> !Sync for RegistryBox<'c>
impl<'c> Unpin for RegistryBox<'c>
impl<'c> UnwindSafe for RegistryBox<'c>
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