Struct gstreamer::miniobject::MiniObject
source · pub struct MiniObject { /* private fields */ }
Implementations§
source§impl MiniObject
impl MiniObject
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GstMiniObject) -> &Self
pub unsafe fn from_glib_none(ptr: *const GstMiniObject) -> Self
pub unsafe fn from_glib_full(ptr: *const GstMiniObject) -> Self
pub unsafe fn from_glib_borrow(ptr: *const GstMiniObject) -> Borrowed<Self>
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstMiniObject)
pub fn make_mut(&mut self) -> &mut MiniObjectRef
pub fn get_mut(&mut self) -> Option<&mut MiniObjectRef>
pub fn is_writable(&self) -> bool
pub fn upcast(self) -> MiniObject
source§impl MiniObject
impl MiniObject
pub fn downcast<T: IsMiniObject + StaticType>(self) -> Result<T, Self>
Methods from Deref<Target = MiniObjectRef>§
pub fn as_ptr(&self) -> *const GstMiniObject
pub fn as_mut_ptr(&self) -> *mut GstMiniObject
pub fn copy(&self) -> MiniObject
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn type_(&self) -> Type
pub fn downcast_ref<T: IsMiniObject + StaticType>(&self) -> Option<&T::RefType>
Trait Implementations§
source§impl AsRef<MiniObjectRef> for MiniObject
impl AsRef<MiniObjectRef> for MiniObject
source§fn as_ref(&self) -> &MiniObjectRef
fn as_ref(&self) -> &MiniObjectRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<MiniObjectRef> for MiniObject
impl Borrow<MiniObjectRef> for MiniObject
source§fn borrow(&self) -> &MiniObjectRef
fn borrow(&self) -> &MiniObjectRef
Immutably borrows from an owned value. Read more
source§impl Clone for MiniObject
impl Clone for MiniObject
source§impl Debug for MiniObject
impl Debug for MiniObject
source§impl Deref for MiniObject
impl Deref for MiniObject
source§impl Drop for MiniObject
impl Drop for MiniObject
source§impl From<MiniObject> for Value
impl From<MiniObject> for Value
source§fn from(v: MiniObject) -> Value
fn from(v: MiniObject) -> Value
Converts to this type from the input type.
source§impl FromGlibContainerAsVec<*mut GstMiniObject, *const *mut GstMiniObject> for MiniObject
impl FromGlibContainerAsVec<*mut GstMiniObject, *const *mut GstMiniObject> for MiniObject
unsafe fn from_glib_none_num_as_vec( ptr: *const *mut GstMiniObject, num: usize, ) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec( _: *const *mut GstMiniObject, _: usize, ) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec( _: *const *mut GstMiniObject, _: usize, ) -> Vec<Self>
source§impl FromGlibContainerAsVec<*mut GstMiniObject, *mut *mut GstMiniObject> for MiniObject
impl FromGlibContainerAsVec<*mut GstMiniObject, *mut *mut GstMiniObject> for MiniObject
unsafe fn from_glib_none_num_as_vec( ptr: *mut *mut GstMiniObject, num: usize, ) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec( ptr: *mut *mut GstMiniObject, num: usize, ) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec( ptr: *mut *mut GstMiniObject, num: usize, ) -> Vec<Self>
source§impl FromGlibPtrArrayContainerAsVec<*mut GstMiniObject, *const *mut GstMiniObject> for MiniObject
impl FromGlibPtrArrayContainerAsVec<*mut GstMiniObject, *const *mut GstMiniObject> for MiniObject
unsafe fn from_glib_none_as_vec(ptr: *const *mut GstMiniObject) -> Vec<Self>
unsafe fn from_glib_container_as_vec(_: *const *mut GstMiniObject) -> Vec<Self>
unsafe fn from_glib_full_as_vec(_: *const *mut GstMiniObject) -> Vec<Self>
source§impl FromGlibPtrArrayContainerAsVec<*mut GstMiniObject, *mut *mut GstMiniObject> for MiniObject
impl FromGlibPtrArrayContainerAsVec<*mut GstMiniObject, *mut *mut GstMiniObject> for MiniObject
unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstMiniObject) -> Vec<Self>
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstMiniObject) -> Vec<Self>
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstMiniObject) -> Vec<Self>
source§impl FromGlibPtrBorrow<*const GstMiniObject> for MiniObject
impl FromGlibPtrBorrow<*const GstMiniObject> for MiniObject
source§unsafe fn from_glib_borrow(ptr: *const GstMiniObject) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *const GstMiniObject) -> Borrowed<Self>
Safety Read more
source§impl FromGlibPtrBorrow<*mut GstMiniObject> for MiniObject
impl FromGlibPtrBorrow<*mut GstMiniObject> for MiniObject
source§unsafe fn from_glib_borrow(ptr: *mut GstMiniObject) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *mut GstMiniObject) -> Borrowed<Self>
Safety Read more
source§impl FromGlibPtrFull<*const GstMiniObject> for MiniObject
impl FromGlibPtrFull<*const GstMiniObject> for MiniObject
source§unsafe fn from_glib_full(ptr: *const GstMiniObject) -> Self
unsafe fn from_glib_full(ptr: *const GstMiniObject) -> Self
Safety Read more
source§impl FromGlibPtrFull<*mut GstMiniObject> for MiniObject
impl FromGlibPtrFull<*mut GstMiniObject> for MiniObject
source§unsafe fn from_glib_full(ptr: *mut GstMiniObject) -> Self
unsafe fn from_glib_full(ptr: *mut GstMiniObject) -> Self
Safety Read more
source§impl FromGlibPtrNone<*const GstMiniObject> for MiniObject
impl FromGlibPtrNone<*const GstMiniObject> for MiniObject
source§unsafe fn from_glib_none(ptr: *const GstMiniObject) -> Self
unsafe fn from_glib_none(ptr: *const GstMiniObject) -> Self
Safety Read more
source§impl FromGlibPtrNone<*mut GstMiniObject> for MiniObject
impl FromGlibPtrNone<*mut GstMiniObject> for MiniObject
source§unsafe fn from_glib_none(ptr: *mut GstMiniObject) -> Self
unsafe fn from_glib_none(ptr: *mut GstMiniObject) -> Self
Safety Read more
source§impl<'a> FromValue<'a> for &'a MiniObject
impl<'a> FromValue<'a> for &'a MiniObject
§type Checker = GenericValueTypeOrNoneChecker<&'a MiniObject>
type Checker = GenericValueTypeOrNoneChecker<&'a MiniObject>
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 MiniObject
impl<'a> FromValue<'a> for MiniObject
§type Checker = GenericValueTypeOrNoneChecker<MiniObject>
type Checker = GenericValueTypeOrNoneChecker<MiniObject>
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 MiniObject
impl GlibPtrDefault for MiniObject
type GlibType = *mut GstMiniObject
source§impl HasParamSpec for MiniObject
impl HasParamSpec for MiniObject
type ParamSpec = ParamSpecBoxed
§type SetValue = MiniObject
type SetValue = MiniObject
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, MiniObject>
fn param_spec_builder() -> Self::BuilderFn
source§impl IntoGlibPtr<*mut GstMiniObject> for MiniObject
impl IntoGlibPtr<*mut GstMiniObject> for MiniObject
source§unsafe fn into_glib_ptr(self) -> *mut GstMiniObject
unsafe fn into_glib_ptr(self) -> *mut GstMiniObject
Transfer: full.
source§impl IsMiniObject for MiniObject
impl IsMiniObject for MiniObject
type RefType = MiniObjectRef
type FfiType = GstMiniObject
source§impl StaticType for MiniObject
impl StaticType for MiniObject
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstMiniObject> for MiniObject
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstMiniObject> for MiniObject
type Storage = (PhantomData<&'a [MiniObject]>, Option<Vec<*mut GstMiniObject>>)
fn to_glib_none_from_slice( t: &'a [MiniObject], ) -> (*const *mut GstMiniObject, Self::Storage)
fn to_glib_container_from_slice( _: &'a [MiniObject], ) -> (*const *mut GstMiniObject, Self::Storage)
fn to_glib_full_from_slice(_: &[MiniObject]) -> *const *mut GstMiniObject
source§impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstMiniObject> for MiniObject
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstMiniObject> for MiniObject
type Storage = (PhantomData<&'a [MiniObject]>, Option<Vec<*mut GstMiniObject>>)
fn to_glib_none_from_slice( t: &'a [MiniObject], ) -> (*mut *mut GstMiniObject, Self::Storage)
fn to_glib_container_from_slice( t: &'a [MiniObject], ) -> (*mut *mut GstMiniObject, Self::Storage)
fn to_glib_full_from_slice(t: &[MiniObject]) -> *mut *mut GstMiniObject
source§impl<'a> ToGlibPtr<'a, *const GstMiniObject> for MiniObject
impl<'a> ToGlibPtr<'a, *const GstMiniObject> for MiniObject
type Storage = PhantomData<&'a MiniObject>
source§fn to_glib_none(&'a self) -> Stash<'a, *const GstMiniObject, Self>
fn to_glib_none(&'a self) -> Stash<'a, *const GstMiniObject, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *const GstMiniObject
fn to_glib_full(&self) -> *const GstMiniObject
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 GstMiniObject> for MiniObject
impl<'a> ToGlibPtr<'a, *mut GstMiniObject> for MiniObject
type Storage = PhantomData<&'a MiniObject>
source§fn to_glib_none(&'a self) -> Stash<'a, *mut GstMiniObject, Self>
fn to_glib_none(&'a self) -> Stash<'a, *mut GstMiniObject, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *mut GstMiniObject
fn to_glib_full(&self) -> *mut GstMiniObject
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 GstMiniObject> for MiniObject
impl<'a> ToGlibPtrMut<'a, *mut GstMiniObject> for MiniObject
type Storage = PhantomData<&'a mut MiniObject>
source§fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstMiniObject, Self>
fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstMiniObject, Self>
Transfer: none. Read more
source§impl ToValue for MiniObject
impl ToValue for MiniObject
source§impl ToValueOptional for MiniObject
impl ToValueOptional for MiniObject
source§impl ValueType for MiniObject
impl ValueType for MiniObject
§type Type = MiniObject
type Type = MiniObject
Type to get the
Type
from. Read moreimpl Send for MiniObject
impl Sync for MiniObject
impl TransparentPtrType for MiniObject
impl ValueTypeOptional for MiniObject
Auto Trait Implementations§
impl Freeze for MiniObject
impl RefUnwindSafe for MiniObject
impl Unpin for MiniObject
impl UnwindSafe for MiniObject
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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
.