Struct pipewire_wrapper::impl_api::protocol::ProtocolRef
source · #[repr(transparent)]pub struct ProtocolRef { /* private fields */ }
Implementations§
source§impl ProtocolRef
impl ProtocolRef
pub fn get_context(&self) -> &ContextRef
Trait Implementations§
source§impl AsMut<ProtocolRef> for Protocol
impl AsMut<ProtocolRef> for Protocol
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<ProtocolRef> for Protocol
impl AsRef<ProtocolRef> for Protocol
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 Debug for ProtocolRef
impl Debug for ProtocolRef
source§impl From<ProtocolRef> for pw_protocol
impl From<ProtocolRef> for pw_protocol
source§fn from(value: ProtocolRef) -> Self
fn from(value: ProtocolRef) -> Self
Converts to this type from the input type.
source§impl From<pw_protocol> for ProtocolRef
impl From<pw_protocol> for ProtocolRef
source§fn from(value: pw_protocol) -> Self
fn from(value: pw_protocol) -> Self
Converts to this type from the input type.
source§impl RawWrapper for ProtocolRef
impl RawWrapper for ProtocolRef
§type CType = pw_protocol
type CType = pw_protocol
External type
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 ProtocolRef
impl Send for ProtocolRef
impl Sync for ProtocolRef
impl Unpin for ProtocolRef
impl UnwindSafe for ProtocolRef
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