pub struct ContextRc { /* private fields */ }
Implementations§
Source§impl ContextRc
impl ContextRc
pub fn new<T: IsLoopRc>( loop_: &T, properties: Option<PropertiesBox>, ) -> Result<Self, Error>
pub fn downgrade(&self) -> ContextWeak
pub fn connect_rc( &self, properties: Option<PropertiesBox>, ) -> Result<CoreRc, Error>
pub fn connect_fd_rc( &self, fd: OwnedFd, properties: Option<PropertiesBox>, ) -> Result<CoreRc, Error>
Methods from Deref<Target = Context>§
pub fn as_raw(&self) -> &pw_context
pub fn as_raw_ptr(&self) -> *mut pw_context
pub fn properties(&self) -> &Properties
pub fn update_properties(&self, properties: &DictRef)
pub fn connect( &self, properties: Option<PropertiesBox>, ) -> Result<CoreBox<'_>, Error>
pub fn connect_fd( &self, fd: OwnedFd, properties: Option<PropertiesBox>, ) -> Result<CoreBox<'_>, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContextRc
impl !RefUnwindSafe for ContextRc
impl !Send for ContextRc
impl !Sync for ContextRc
impl Unpin for ContextRc
impl !UnwindSafe for ContextRc
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