Struct gstreamer::context::ContextRef
source · #[repr(transparent)]pub struct ContextRef(GstContext);
Tuple Fields§
§0: GstContext
Implementations§
source§impl ContextRef
impl ContextRef
pub fn as_ptr(&self) -> *const GstContext
pub fn as_mut_ptr(&self) -> *mut GstContext
pub unsafe fn from_ptr<'a>(ptr: *const GstContext) -> &'a Self
pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstContext) -> &'a mut Self
pub fn copy(&self) -> Context
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
pub fn ptr_eq(this: &ContextRef, other: &ContextRef) -> bool
source§impl ContextRef
impl ContextRef
pub fn context_type(&self) -> &str
pub fn has_context_type(&self, context_type: &str) -> bool
pub fn is_persistent(&self) -> bool
pub fn structure(&self) -> &StructureRef
pub fn structure_mut(&mut self) -> &mut StructureRef
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.
source§impl Borrow<ContextRef> for Context
impl Borrow<ContextRef> for Context
source§fn borrow(&self) -> &ContextRef
fn borrow(&self) -> &ContextRef
Immutably borrows from an owned value. Read more
source§impl Debug for ContextRef
impl Debug for ContextRef
source§impl<'a> FromValue<'a> for &'a ContextRef
impl<'a> FromValue<'a> for &'a ContextRef
source§type Checker = GenericValueTypeOrNoneChecker<&'a ContextRef>
type Checker = GenericValueTypeOrNoneChecker<&'a ContextRef>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl GlibPtrDefault for ContextRef
impl GlibPtrDefault for ContextRef
type GlibType = *mut GstContext
source§impl StaticType for ContextRef
impl StaticType for ContextRef
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToOwned for ContextRef
impl ToOwned for ContextRef
impl Send for ContextRef
impl Sync for ContextRef
Auto Trait Implementations§
impl Freeze for ContextRef
impl RefUnwindSafe for ContextRef
impl !Unpin for ContextRef
impl UnwindSafe for ContextRef
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.