Struct pipewire_wrapper::core_api::proxy::ProxyRef
source · #[repr(transparent)]pub struct ProxyRef { /* private fields */ }
Implementations§
source§impl ProxyRef
impl ProxyRef
pub fn get_id(&self) -> u32
pub fn is_bound(&self) -> bool
pub fn get_type_and_version(&self) -> (TypeInfo<'_>, u32)
pub fn get_type(&self) -> TypeInfo<'_>
pub fn get_protocol(&self) -> &ProtocolRef
pub fn sync(&self, seq: i32) -> Result<()>
pub fn get_bound_id(&self) -> Option<u32>
pub fn error(&self, res: i32, error: &CStr) -> Result<()>
pub fn as_object<T>(&self) -> Result<&T>where T: Proxied,
Trait Implementations§
source§impl<'a> AddListener<'a> for ProxyRef
impl<'a> AddListener<'a> for ProxyRef
source§impl RawWrapper for ProxyRef
impl RawWrapper for ProxyRef
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 ProxyRef
impl Send for ProxyRef
impl Sync for ProxyRef
impl Unpin for ProxyRef
impl UnwindSafe for ProxyRef
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