#[repr(transparent)]pub struct Context { /* private fields */ }
Implementations§
source§impl Context
impl Context
pub unsafe fn from_glib_none(ptr: *const GstContext) -> Self
pub unsafe fn from_glib_full(ptr: *const GstContext) -> Self
pub unsafe fn from_glib_borrow(ptr: *const GstContext) -> Borrowed<Self>
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstContext)
pub fn make_mut(&mut self) -> &mut ContextRef
pub fn get_mut(&mut self) -> Option<&mut ContextRef>
pub fn is_writable(&self) -> bool
pub fn upcast(self) -> MiniObject
Methods from Deref<Target = ContextRef>§
pub fn as_ptr(&self) -> *const GstContext
pub fn as_mut_ptr(&self) -> *mut GstContext
pub fn copy(&self) -> Context
pub fn upcast_ref(&self) -> &MiniObjectRef
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
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 FromGlibContainerAsVec<*mut GstContext, *const *mut GstContext> for Context
impl FromGlibContainerAsVec<*mut GstContext, *const *mut GstContext> for Context
unsafe fn from_glib_none_num_as_vec(
ptr: *const *mut GstContext,
num: usize
) -> Vec<Self> ⓘ
unsafe fn from_glib_container_num_as_vec(
_: *const *mut GstContext,
_: usize
) -> Vec<Self> ⓘ
unsafe fn from_glib_full_num_as_vec(
_: *const *mut GstContext,
_: usize
) -> Vec<Self> ⓘ
source§impl FromGlibContainerAsVec<*mut GstContext, *mut *mut GstContext> for Context
impl FromGlibContainerAsVec<*mut GstContext, *mut *mut GstContext> for Context
unsafe fn from_glib_none_num_as_vec(
ptr: *mut *mut GstContext,
num: usize
) -> Vec<Self> ⓘ
unsafe fn from_glib_container_num_as_vec(
ptr: *mut *mut GstContext,
num: usize
) -> Vec<Self> ⓘ
unsafe fn from_glib_full_num_as_vec(
ptr: *mut *mut GstContext,
num: usize
) -> Vec<Self> ⓘ
source§impl FromGlibPtrArrayContainerAsVec<*mut GstContext, *const *mut GstContext> for Context
impl FromGlibPtrArrayContainerAsVec<*mut GstContext, *const *mut GstContext> for Context
unsafe fn from_glib_none_as_vec(ptr: *const *mut GstContext) -> Vec<Self> ⓘ
unsafe fn from_glib_container_as_vec(_: *const *mut GstContext) -> Vec<Self> ⓘ
unsafe fn from_glib_full_as_vec(_: *const *mut GstContext) -> Vec<Self> ⓘ
source§impl FromGlibPtrArrayContainerAsVec<*mut GstContext, *mut *mut GstContext> for Context
impl FromGlibPtrArrayContainerAsVec<*mut GstContext, *mut *mut GstContext> for Context
unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstContext) -> Vec<Self> ⓘ
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstContext) -> Vec<Self> ⓘ
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstContext) -> Vec<Self> ⓘ
source§impl FromGlibPtrBorrow<*const GstContext> for Context
impl FromGlibPtrBorrow<*const GstContext> for Context
source§unsafe fn from_glib_borrow(ptr: *const GstContext) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *const GstContext) -> Borrowed<Self>
Safety Read more
source§impl FromGlibPtrBorrow<*mut GstContext> for Context
impl FromGlibPtrBorrow<*mut GstContext> for Context
source§unsafe fn from_glib_borrow(ptr: *mut GstContext) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *mut GstContext) -> Borrowed<Self>
Safety Read more
source§impl FromGlibPtrFull<*const GstContext> for Context
impl FromGlibPtrFull<*const GstContext> for Context
source§unsafe fn from_glib_full(ptr: *const GstContext) -> Self
unsafe fn from_glib_full(ptr: *const GstContext) -> Self
Safety Read more
source§impl FromGlibPtrFull<*mut GstContext> for Context
impl FromGlibPtrFull<*mut GstContext> for Context
source§unsafe fn from_glib_full(ptr: *mut GstContext) -> Self
unsafe fn from_glib_full(ptr: *mut GstContext) -> Self
Safety Read more
source§impl FromGlibPtrNone<*const GstContext> for Context
impl FromGlibPtrNone<*const GstContext> for Context
source§unsafe fn from_glib_none(ptr: *const GstContext) -> Self
unsafe fn from_glib_none(ptr: *const GstContext) -> Self
Safety Read more
source§impl FromGlibPtrNone<*mut GstContext> for Context
impl FromGlibPtrNone<*mut GstContext> for Context
source§unsafe fn from_glib_none(ptr: *mut GstContext) -> Self
unsafe fn from_glib_none(ptr: *mut GstContext) -> Self
Safety Read more
source§impl<'a> FromValue<'a> for &'a Context
impl<'a> FromValue<'a> for &'a Context
§type Checker = GenericValueTypeOrNoneChecker<&'a Context>
type Checker = GenericValueTypeOrNoneChecker<&'a Context>
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<'a> FromValue<'a> for Context
impl<'a> FromValue<'a> for Context
§type Checker = GenericValueTypeOrNoneChecker<Context>
type Checker = GenericValueTypeOrNoneChecker<Context>
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 Context
impl GlibPtrDefault for Context
type GlibType = *mut GstContext
source§impl IntoGlibPtr<*mut GstContext> for Context
impl IntoGlibPtr<*mut GstContext> for Context
source§unsafe fn into_glib_ptr(self) -> *mut GstContext
unsafe fn into_glib_ptr(self) -> *mut GstContext
Transfer: full.
source§impl IsMiniObject for Context
impl IsMiniObject for Context
type RefType = ContextRef
type FfiType = GstContext
source§impl StaticType for Context
impl StaticType for Context
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstContext> for Context
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstContext> for Context
type Storage = (Vec<Stash<'a, *mut GstContext, Context>, Global>, Option<Vec<*mut GstContext, Global>>)
fn to_glib_none_from_slice(
t: &'a [Context]
) -> (*const *mut GstContext, Self::Storage)
fn to_glib_container_from_slice(
_: &'a [Context]
) -> (*const *mut GstContext, Self::Storage)
fn to_glib_full_from_slice(_: &[Context]) -> *const *mut GstContext
source§impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstContext> for Context
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstContext> for Context
type Storage = (Vec<Stash<'a, *mut GstContext, Context>, Global>, Option<Vec<*mut GstContext, Global>>)
fn to_glib_none_from_slice(
t: &'a [Context]
) -> (*mut *mut GstContext, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [Context]
) -> (*mut *mut GstContext, Self::Storage)
fn to_glib_full_from_slice(t: &[Context]) -> *mut *mut GstContext
source§impl<'a> ToGlibPtr<'a, *const GstContext> for Context
impl<'a> ToGlibPtr<'a, *const GstContext> for Context
type Storage = &'a Context
source§fn to_glib_none(&'a self) -> Stash<'a, *const GstContext, Self>
fn to_glib_none(&'a self) -> Stash<'a, *const GstContext, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *const GstContext
fn to_glib_full(&self) -> *const GstContext
Transfer: full. Read more
source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§impl<'a> ToGlibPtr<'a, *mut GstContext> for Context
impl<'a> ToGlibPtr<'a, *mut GstContext> for Context
type Storage = &'a Context
source§fn to_glib_none(&'a self) -> Stash<'a, *mut GstContext, Self>
fn to_glib_none(&'a self) -> Stash<'a, *mut GstContext, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *mut GstContext
fn to_glib_full(&self) -> *mut GstContext
Transfer: full. Read more
source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§impl<'a> ToGlibPtrMut<'a, *mut GstContext> for Context
impl<'a> ToGlibPtrMut<'a, *mut GstContext> for Context
type Storage = &'a mut Context
source§fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstContext, Self>
fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstContext, Self>
Transfer: none. Read more
source§impl ToValueOptional for Context
impl ToValueOptional for Context
impl Send for Context
impl Sync for Context
impl ValueTypeOptional for Context
Auto Trait Implementations§
Blanket Implementations§
source§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.
source§impl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.