pub struct Context { /* private fields */ }
Implementations§
source§impl Context
impl Context
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GstContext) -> &Self
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 HasParamSpec for Context
impl HasParamSpec for Context
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 = (PhantomData<&'a [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
source§impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstContext> for Context
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstContext> for Context
type Storage = (PhantomData<&'a [Context]>, 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
source§impl<'a> ToGlibPtr<'a, *const GstContext> for Context
impl<'a> ToGlibPtr<'a, *const GstContext> for Context
type Storage = PhantomData<&'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 = PhantomData<&'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 = PhantomData<&'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
source§fn 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 TransparentPtrType for Context
impl ValueTypeOptional for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>
source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
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> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
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> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.