Struct gstreamer::context::ContextRef
source · [−]#[repr(transparent)]pub struct ContextRef(_);
Implementations
sourceimpl ContextRef
impl ContextRef
pub unsafe fn as_ptr(&self) -> *const GstContext
pub unsafe 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
sourceimpl 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
sourceimpl AsRef<ContextRef> for Context
impl AsRef<ContextRef> for Context
sourcefn as_ref(&self) -> &ContextRef
fn as_ref(&self) -> &ContextRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<ContextRef> for Context
impl Borrow<ContextRef> for Context
sourcefn borrow(&self) -> &ContextRef
fn borrow(&self) -> &ContextRef
Immutably borrows from an owned value. Read more
sourceimpl Debug for ContextRef
impl Debug for ContextRef
sourceimpl<'a> FromValue<'a> for &'a ContextRef
impl<'a> FromValue<'a> for &'a ContextRef
type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl GlibPtrDefault for ContextRef
impl GlibPtrDefault for ContextRef
type GlibType = *mut GstContext
sourceimpl StaticType for ContextRef
impl StaticType for ContextRef
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl ToOwned for ContextRef
impl ToOwned for ContextRef
impl Send for ContextRef
impl Sync for ContextRef
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.