#[repr(transparent)]pub struct Context { /* private fields */ }
Implementations
sourceimpl 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
pub unsafe fn into_ptr(self) -> *mut GstContext
Methods from Deref<Target = ContextRef>
pub unsafe fn as_ptr(&self) -> *const GstContext
pub unsafe 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
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 Deref for Context
impl Deref for Context
type Target = ContextRef
type Target = ContextRef
The resulting type after dereferencing.
sourceimpl 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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_num_as_vec(
_: *const *mut GstContext,
_: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_num_as_vec(
_: *const *mut GstContext,
_: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl 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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_num_as_vec(
ptr: *mut *mut GstContext,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_num_as_vec(
ptr: *mut *mut GstContext,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl 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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_as_vec(_: *const *mut GstContext) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_as_vec(_: *const *mut GstContext) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl 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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstContext) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstContext) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibPtrBorrow<*const GstContext> for Context
impl FromGlibPtrBorrow<*const GstContext> for Context
sourceunsafe fn from_glib_borrow(ptr: *const GstContext) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *const GstContext) -> Borrowed<Self>
Safety Read more
sourceimpl FromGlibPtrBorrow<*mut GstContext> for Context
impl FromGlibPtrBorrow<*mut GstContext> for Context
sourceunsafe fn from_glib_borrow(ptr: *mut GstContext) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *mut GstContext) -> Borrowed<Self>
Safety Read more
sourceimpl FromGlibPtrFull<*const GstContext> for Context
impl FromGlibPtrFull<*const GstContext> for Context
sourceunsafe fn from_glib_full(ptr: *const GstContext) -> Self
unsafe fn from_glib_full(ptr: *const GstContext) -> Self
Safety Read more
sourceimpl FromGlibPtrFull<*mut GstContext> for Context
impl FromGlibPtrFull<*mut GstContext> for Context
sourceunsafe fn from_glib_full(ptr: *mut GstContext) -> Self
unsafe fn from_glib_full(ptr: *mut GstContext) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*const GstContext> for Context
impl FromGlibPtrNone<*const GstContext> for Context
sourceunsafe fn from_glib_none(ptr: *const GstContext) -> Self
unsafe fn from_glib_none(ptr: *const GstContext) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*mut GstContext> for Context
impl FromGlibPtrNone<*mut GstContext> for Context
sourceunsafe fn from_glib_none(ptr: *mut GstContext) -> Self
unsafe fn from_glib_none(ptr: *mut GstContext) -> Self
Safety Read more
sourceimpl<'a> FromValue<'a> for Context
impl<'a> FromValue<'a> for Context
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<'a> FromValue<'a> for &'a Context
impl<'a> FromValue<'a> for &'a Context
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 Context
impl GlibPtrDefault for Context
type GlibType = *mut GstContext
sourceimpl IsMiniObject for Context
impl IsMiniObject for Context
type RefType = ContextRef
type FfiType = GstContext
sourceimpl StaticType for Context
impl StaticType for Context
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl<'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>>, Option<Vec<*mut GstContext>>)
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
sourceimpl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstContext> for Context
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstContext> for Context
type Storage = (Vec<Stash<'a, *mut GstContext, Self>>, Option<Vec<*mut GstContext>>)
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
sourceimpl<'a> ToGlibPtr<'a, *const GstContext> for Context
impl<'a> ToGlibPtr<'a, *const GstContext> for Context
type Storage = &'a Self
sourcefn 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
sourcefn to_glib_full(&self) -> *const GstContext
fn to_glib_full(&self) -> *const GstContext
Transfer: full. Read more
sourcefn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
sourceimpl<'a> ToGlibPtr<'a, *mut GstContext> for Context
impl<'a> ToGlibPtr<'a, *mut GstContext> for Context
type Storage = &'a Self
sourcefn 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
sourcefn to_glib_full(&self) -> *mut GstContext
fn to_glib_full(&self) -> *mut GstContext
Transfer: full. Read more
sourcefn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
sourceimpl<'a> ToGlibPtrMut<'a, *mut GstContext> for Context
impl<'a> ToGlibPtrMut<'a, *mut GstContext> for Context
type Storage = &'a mut Self
sourcefn 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
sourceimpl ToValueOptional for Context
impl ToValueOptional for Context
sourcefn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an Option
to a Value
.
impl Send for Context
impl Sync for Context
impl ValueTypeOptional for Context
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.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.