pub struct MainLoopRc { /* private fields */ }
Implementations§
Source§impl MainLoopRc
impl MainLoopRc
Sourcepub fn new(properties: Option<&DictRef>) -> Result<Self, Error>
pub fn new(properties: Option<&DictRef>) -> Result<Self, Error>
Initialize Pipewire and create a new MainLoopRc
Sourcepub unsafe fn from_raw(ptr: NonNull<pw_main_loop>) -> Self
pub unsafe fn from_raw(ptr: NonNull<pw_main_loop>) -> Self
Create a new main loop from a raw pw_main_loop
, taking ownership of it.
§Safety
The provided pointer must point to a valid, well aligned pw_main_loop
.
The raw loop should not be manually destroyed or moved, as the new MainLoopRc
takes ownership of it.
pub fn downgrade(&self) -> MainLoopWeak
Methods from Deref<Target = MainLoop>§
pub fn as_raw(&self) -> &pw_main_loop
pub fn as_raw_ptr(&self) -> *mut pw_main_loop
pub fn loop_(&self) -> &Loop
pub fn run(&self)
pub fn quit(&self)
Trait Implementations§
Source§impl AsRef<Loop> for MainLoopRc
impl AsRef<Loop> for MainLoopRc
Source§impl AsRef<MainLoop> for MainLoopRc
impl AsRef<MainLoop> for MainLoopRc
Source§impl Clone for MainLoopRc
impl Clone for MainLoopRc
Source§fn clone(&self) -> MainLoopRc
fn clone(&self) -> MainLoopRc
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MainLoopRc
impl Debug for MainLoopRc
Source§impl Deref for MainLoopRc
impl Deref for MainLoopRc
impl IsLoopRc for MainLoopRc
Auto Trait Implementations§
impl Freeze for MainLoopRc
impl RefUnwindSafe for MainLoopRc
impl !Send for MainLoopRc
impl !Sync for MainLoopRc
impl Unpin for MainLoopRc
impl UnwindSafe for MainLoopRc
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