Struct pipewire_wrapper::core_api::main_loop::MainLoopRef
source · #[repr(transparent)]pub struct MainLoopRef { /* private fields */ }
Implementations§
source§impl MainLoopRef
impl MainLoopRef
source§impl MainLoopRef
impl MainLoopRef
pub fn iter(&self, timeout_millis: i32) -> LoopRefIterator<'_> ⓘ
Trait Implementations§
source§impl AsMut<MainLoopRef> for MainLoop
impl AsMut<MainLoopRef> for MainLoop
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<MainLoopRef> for MainLoop
impl AsRef<MainLoopRef> for MainLoop
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 MainLoopRef
impl Debug for MainLoopRef
source§impl From<MainLoopRef> for pw_main_loop
impl From<MainLoopRef> for pw_main_loop
source§fn from(value: MainLoopRef) -> Self
fn from(value: MainLoopRef) -> Self
Converts to this type from the input type.
source§impl From<pw_main_loop> for MainLoopRef
impl From<pw_main_loop> for MainLoopRef
source§fn from(value: pw_main_loop) -> Self
fn from(value: pw_main_loop) -> Self
Converts to this type from the input type.
source§impl RawWrapper for MainLoopRef
impl RawWrapper for MainLoopRef
§type CType = pw_main_loop
type CType = pw_main_loop
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 MainLoopRef
impl Send for MainLoopRef
impl Sync for MainLoopRef
impl Unpin for MainLoopRef
impl UnwindSafe for MainLoopRef
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