Struct pipewire_wrapper::impl_api::global::GlobalRef
source · #[repr(transparent)]pub struct GlobalRef { /* private fields */ }
Implementations§
source§impl GlobalRef
impl GlobalRef
pub fn register(&self) -> Result<()>
pub fn get_permissions(&self, client: &ImplClient) -> Permissions
pub fn get_context(&self) -> &ContextRef
pub fn get_type(&self) -> TypeInfo<'_>
pub fn is_type(&self, type_info: &TypeInfo<'_>) -> bool
pub fn get_version(&self) -> u32
pub fn get_properties(&self) -> &PropertiesRef
pub fn update_keys(&self, source: &DictRef, keys_to_update: &[&CStr]) -> i32
pub fn get_id(&self) -> u32
pub fn get_serial(&self) -> u64
pub fn update_permissions( &self, client: &ImplClientRef, old: Permissions, new: Permissions ) -> Result<()>
Trait Implementations§
source§impl AsMut<GlobalRef> for Global
impl AsMut<GlobalRef> for Global
source§fn as_mut(&mut self) -> &mut <Self as Wrapper>::RawWrapperType
fn as_mut(&mut self) -> &mut <Self as Wrapper>::RawWrapperType
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<GlobalRef> for Global
impl AsRef<GlobalRef> for Global
source§fn as_ref(&self) -> &<Self as Wrapper>::RawWrapperType
fn as_ref(&self) -> &<Self as Wrapper>::RawWrapperType
Converts this type into a shared reference of the (usually inferred) input type.
source§impl RawWrapper for GlobalRef
impl RawWrapper for GlobalRef
source§fn as_raw_ptr(&self) -> *mut Self::CType
fn as_raw_ptr(&self) -> *mut Self::CType
Raw ptr to the external type
source§fn from_raw(raw: Self::CType) -> Self
fn from_raw(raw: Self::CType) -> Self
Creates wrapper from the external value, can be use when external type has no raw pointers.
source§unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
Cast external pointer to the borrowed mutable wrapper.
Panic when pointer is null.
Lifetime is not reliable and should be guaranteed explicitly. Read more
Auto Trait Implementations§
impl RefUnwindSafe for GlobalRef
impl Send for GlobalRef
impl Sync for GlobalRef
impl Unpin for GlobalRef
impl UnwindSafe for GlobalRef
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