Struct gstreamer::bufferlist::BufferList
source · #[repr(transparent)]pub struct BufferList {
obj: NonNull<GstBufferList>,
}
Fields§
§obj: NonNull<GstBufferList>
Implementations§
source§impl BufferList
impl BufferList
pub unsafe fn from_glib_ptr_borrow<'a>( ptr: *const *const GstBufferList, ) -> &'a Self
pub unsafe fn from_glib_none(ptr: *const GstBufferList) -> Self
pub unsafe fn from_glib_full(ptr: *const GstBufferList) -> Self
pub unsafe fn from_glib_borrow(ptr: *const GstBufferList) -> Borrowed<Self>
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstBufferList)
pub fn make_mut(&mut self) -> &mut BufferListRef
pub fn get_mut(&mut self) -> Option<&mut BufferListRef>
pub fn is_writable(&self) -> bool
pub fn upcast(self) -> MiniObject
Methods from Deref<Target = BufferListRef>§
pub fn as_ptr(&self) -> *const GstBufferList
pub fn as_mut_ptr(&self) -> *mut GstBufferList
pub fn copy(&self) -> BufferList
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn copy_deep(&self) -> BufferList
pub fn get(&self, idx: u32) -> Option<&BufferRef>
pub fn get_owned(&self, idx: u32) -> Option<Buffer>
pub fn len(&self) -> usize
pub fn calculate_size(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> Iter<'_> ⓘ
pub fn iter_owned(&self) -> IterOwned<'_> ⓘ
pub fn foreach<F: FnMut(&Buffer, u32) -> ControlFlow<(), ()>>( &self, func: F, ) -> bool
Trait Implementations§
source§impl AsRef<BufferListRef> for BufferList
impl AsRef<BufferListRef> for BufferList
source§fn as_ref(&self) -> &BufferListRef
fn as_ref(&self) -> &BufferListRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<BufferListRef> for BufferList
impl Borrow<BufferListRef> for BufferList
source§fn borrow(&self) -> &BufferListRef
fn borrow(&self) -> &BufferListRef
Immutably borrows from an owned value. Read more
source§impl Clone for BufferList
impl Clone for BufferList
source§impl Debug for BufferList
impl Debug for BufferList
source§impl Default for BufferList
impl Default for BufferList
source§impl Deref for BufferList
impl Deref for BufferList
source§impl Drop for BufferList
impl Drop for BufferList
source§impl From<Buffer> for BufferList
impl From<Buffer> for BufferList
source§impl From<BufferList> for Value
impl From<BufferList> for Value
source§fn from(v: BufferList) -> Value
fn from(v: BufferList) -> Value
Converts to this type from the input type.
source§impl FromGlibContainerAsVec<*mut GstBufferList, *const *mut GstBufferList> for BufferList
impl FromGlibContainerAsVec<*mut GstBufferList, *const *mut GstBufferList> for BufferList
unsafe fn from_glib_none_num_as_vec( ptr: *const *mut GstBufferList, num: usize, ) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec( _: *const *mut GstBufferList, _: usize, ) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec( _: *const *mut GstBufferList, _: usize, ) -> Vec<Self>
source§impl FromGlibContainerAsVec<*mut GstBufferList, *mut *mut GstBufferList> for BufferList
impl FromGlibContainerAsVec<*mut GstBufferList, *mut *mut GstBufferList> for BufferList
unsafe fn from_glib_none_num_as_vec( ptr: *mut *mut GstBufferList, num: usize, ) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec( ptr: *mut *mut GstBufferList, num: usize, ) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec( ptr: *mut *mut GstBufferList, num: usize, ) -> Vec<Self>
source§impl FromGlibPtrArrayContainerAsVec<*mut GstBufferList, *const *mut GstBufferList> for BufferList
impl FromGlibPtrArrayContainerAsVec<*mut GstBufferList, *const *mut GstBufferList> for BufferList
unsafe fn from_glib_none_as_vec(ptr: *const *mut GstBufferList) -> Vec<Self>
unsafe fn from_glib_container_as_vec(_: *const *mut GstBufferList) -> Vec<Self>
unsafe fn from_glib_full_as_vec(_: *const *mut GstBufferList) -> Vec<Self>
source§impl FromGlibPtrArrayContainerAsVec<*mut GstBufferList, *mut *mut GstBufferList> for BufferList
impl FromGlibPtrArrayContainerAsVec<*mut GstBufferList, *mut *mut GstBufferList> for BufferList
unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstBufferList) -> Vec<Self>
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstBufferList) -> Vec<Self>
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstBufferList) -> Vec<Self>
source§impl FromGlibPtrBorrow<*const GstBufferList> for BufferList
impl FromGlibPtrBorrow<*const GstBufferList> for BufferList
source§unsafe fn from_glib_borrow(ptr: *const GstBufferList) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *const GstBufferList) -> Borrowed<Self>
Safety Read more
source§impl FromGlibPtrBorrow<*mut GstBufferList> for BufferList
impl FromGlibPtrBorrow<*mut GstBufferList> for BufferList
source§unsafe fn from_glib_borrow(ptr: *mut GstBufferList) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *mut GstBufferList) -> Borrowed<Self>
Safety Read more
source§impl FromGlibPtrFull<*const GstBufferList> for BufferList
impl FromGlibPtrFull<*const GstBufferList> for BufferList
source§unsafe fn from_glib_full(ptr: *const GstBufferList) -> Self
unsafe fn from_glib_full(ptr: *const GstBufferList) -> Self
Safety Read more
source§impl FromGlibPtrFull<*mut GstBufferList> for BufferList
impl FromGlibPtrFull<*mut GstBufferList> for BufferList
source§unsafe fn from_glib_full(ptr: *mut GstBufferList) -> Self
unsafe fn from_glib_full(ptr: *mut GstBufferList) -> Self
Safety Read more
source§impl FromGlibPtrNone<*const GstBufferList> for BufferList
impl FromGlibPtrNone<*const GstBufferList> for BufferList
source§unsafe fn from_glib_none(ptr: *const GstBufferList) -> Self
unsafe fn from_glib_none(ptr: *const GstBufferList) -> Self
Safety Read more
source§impl FromGlibPtrNone<*mut GstBufferList> for BufferList
impl FromGlibPtrNone<*mut GstBufferList> for BufferList
source§unsafe fn from_glib_none(ptr: *mut GstBufferList) -> Self
unsafe fn from_glib_none(ptr: *mut GstBufferList) -> Self
Safety Read more
source§impl FromIterator<Buffer> for BufferList
impl FromIterator<Buffer> for BufferList
source§impl<'a> FromValue<'a> for &'a BufferList
impl<'a> FromValue<'a> for &'a BufferList
source§type Checker = GenericValueTypeOrNoneChecker<&'a BufferList>
type Checker = GenericValueTypeOrNoneChecker<&'a BufferList>
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 BufferList
impl<'a> FromValue<'a> for BufferList
source§type Checker = GenericValueTypeOrNoneChecker<BufferList>
type Checker = GenericValueTypeOrNoneChecker<BufferList>
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 BufferList
impl GlibPtrDefault for BufferList
type GlibType = *mut GstBufferList
source§impl HasParamSpec for BufferList
impl HasParamSpec for BufferList
type ParamSpec = ParamSpecBoxed
source§type SetValue = BufferList
type SetValue = BufferList
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, BufferList>
fn param_spec_builder() -> Self::BuilderFn
source§impl IntoGlibPtr<*mut GstBufferList> for BufferList
impl IntoGlibPtr<*mut GstBufferList> for BufferList
source§unsafe fn into_glib_ptr(self) -> *mut GstBufferList
unsafe fn into_glib_ptr(self) -> *mut GstBufferList
Transfer: full.
source§impl IsMiniObject for BufferList
impl IsMiniObject for BufferList
type RefType = BufferListRef
type FfiType = GstBufferList
source§impl StaticType for BufferList
impl StaticType for BufferList
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstBufferList> for BufferList
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstBufferList> for BufferList
type Storage = (PhantomData<&'a [BufferList]>, Option<Vec<*mut GstBufferList>>)
fn to_glib_none_from_slice( t: &'a [BufferList], ) -> (*const *mut GstBufferList, Self::Storage)
fn to_glib_container_from_slice( _: &'a [BufferList], ) -> (*const *mut GstBufferList, Self::Storage)
fn to_glib_full_from_slice(_: &[BufferList]) -> *const *mut GstBufferList
source§impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstBufferList> for BufferList
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstBufferList> for BufferList
type Storage = (PhantomData<&'a [BufferList]>, Option<Vec<*mut GstBufferList>>)
fn to_glib_none_from_slice( t: &'a [BufferList], ) -> (*mut *mut GstBufferList, Self::Storage)
fn to_glib_container_from_slice( t: &'a [BufferList], ) -> (*mut *mut GstBufferList, Self::Storage)
fn to_glib_full_from_slice(t: &[BufferList]) -> *mut *mut GstBufferList
source§impl<'a> ToGlibPtr<'a, *const GstBufferList> for BufferList
impl<'a> ToGlibPtr<'a, *const GstBufferList> for BufferList
type Storage = PhantomData<&'a BufferList>
source§fn to_glib_none(&'a self) -> Stash<'a, *const GstBufferList, Self>
fn to_glib_none(&'a self) -> Stash<'a, *const GstBufferList, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *const GstBufferList
fn to_glib_full(&self) -> *const GstBufferList
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 GstBufferList> for BufferList
impl<'a> ToGlibPtr<'a, *mut GstBufferList> for BufferList
type Storage = PhantomData<&'a BufferList>
source§fn to_glib_none(&'a self) -> Stash<'a, *mut GstBufferList, Self>
fn to_glib_none(&'a self) -> Stash<'a, *mut GstBufferList, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *mut GstBufferList
fn to_glib_full(&self) -> *mut GstBufferList
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 GstBufferList> for BufferList
impl<'a> ToGlibPtrMut<'a, *mut GstBufferList> for BufferList
type Storage = PhantomData<&'a mut BufferList>
source§fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstBufferList, Self>
fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstBufferList, Self>
Transfer: none. Read more
source§impl ToValue for BufferList
impl ToValue for BufferList
source§impl ToValueOptional for BufferList
impl ToValueOptional for BufferList
source§fn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an
Option
to a Value
.source§impl ValueType for BufferList
impl ValueType for BufferList
source§type Type = BufferList
type Type = BufferList
Type to get the
Type
from. Read moreimpl Send for BufferList
impl Sync for BufferList
impl TransparentPtrType for BufferList
impl ValueTypeOptional for BufferList
Auto Trait Implementations§
impl Freeze for BufferList
impl RefUnwindSafe for BufferList
impl Unpin for BufferList
impl UnwindSafe for BufferList
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>,
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>,
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>,
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>,
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>,
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>,
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
.