pub struct Context { /* private fields */ }
Implementations§
source§impl Context
impl Context
pub fn new<T: IsLoopRc>(loop_: &T) -> Result<Self, Error>
pub fn with_properties<T: IsLoopRc>( loop_: &T, properties: Properties ) -> Result<Self, Error>
pub fn connect(&self, properties: Option<Properties>) -> Result<Core, Error>
pub fn connect_fd( &self, fd: OwnedFd, properties: Option<Properties> ) -> Result<Core, Error>
Methods from Deref<Target = ContextRef>§
pub fn as_raw(&self) -> &pw_context
pub fn as_raw_ptr(&self) -> *mut pw_context
pub fn properties(&self) -> &PropertiesRef
pub fn update_properties(&self, properties: &DictRef)
Trait Implementations§
source§impl AsRef<ContextRef> for Context
impl AsRef<ContextRef> for Context
source§fn as_ref(&self) -> &ContextRef
fn as_ref(&self) -> &ContextRef
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
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