#[repr(transparent)]pub struct Sample { /* private fields */ }
Implementations
sourceimpl Sample
impl Sample
pub unsafe fn from_glib_none(ptr: *const GstSample) -> Self
pub unsafe fn from_glib_full(ptr: *const GstSample) -> Self
pub unsafe fn from_glib_borrow(ptr: *const GstSample) -> Borrowed<Self>
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstSample)
pub fn make_mut(&mut self) -> &mut SampleRef
pub fn get_mut(&mut self) -> Option<&mut SampleRef>
pub fn is_writable(&self) -> bool
pub fn upcast(self) -> MiniObject
pub unsafe fn into_ptr(self) -> *mut GstSample
sourceimpl Sample
impl Sample
pub fn builder<'a>() -> SampleBuilder<'a>
Methods from Deref<Target = SampleRef>
pub unsafe fn as_ptr(&self) -> *const GstSample
pub unsafe fn as_mut_ptr(&self) -> *mut GstSample
pub fn copy(&self) -> Sample
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn buffer(&self) -> Option<&BufferRef>
pub fn buffer_owned(&self) -> Option<Buffer>
pub fn buffer_list(&self) -> Option<&BufferListRef>
pub fn buffer_list_owned(&self) -> Option<BufferList>
pub fn caps(&self) -> Option<&CapsRef>
pub fn caps_owned(&self) -> Option<Caps>
pub fn segment(&self) -> Option<&Segment>
pub fn info(&self) -> Option<&StructureRef>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Sample
impl<'de> Deserialize<'de> for Sample
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromGlibContainerAsVec<*mut GstSample, *const *mut GstSample> for Sample
impl FromGlibContainerAsVec<*mut GstSample, *const *mut GstSample> for Sample
unsafe fn from_glib_none_num_as_vec(
ptr: *const *mut GstSample,
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 GstSample,
_: 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 GstSample,
_: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibContainerAsVec<*mut GstSample, *mut *mut GstSample> for Sample
impl FromGlibContainerAsVec<*mut GstSample, *mut *mut GstSample> for Sample
unsafe fn from_glib_none_num_as_vec(
ptr: *mut *mut GstSample,
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 GstSample,
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 GstSample,
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 GstSample, *const *mut GstSample> for Sample
impl FromGlibPtrArrayContainerAsVec<*mut GstSample, *const *mut GstSample> for Sample
unsafe fn from_glib_none_as_vec(ptr: *const *mut GstSample) -> 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 GstSample) -> 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 GstSample) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibPtrArrayContainerAsVec<*mut GstSample, *mut *mut GstSample> for Sample
impl FromGlibPtrArrayContainerAsVec<*mut GstSample, *mut *mut GstSample> for Sample
unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstSample) -> 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 GstSample) -> 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 GstSample) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibPtrBorrow<*const GstSample> for Sample
impl FromGlibPtrBorrow<*const GstSample> for Sample
sourceimpl FromGlibPtrBorrow<*mut GstSample> for Sample
impl FromGlibPtrBorrow<*mut GstSample> for Sample
sourceimpl FromGlibPtrFull<*const GstSample> for Sample
impl FromGlibPtrFull<*const GstSample> for Sample
sourceunsafe fn from_glib_full(ptr: *const GstSample) -> Self
unsafe fn from_glib_full(ptr: *const GstSample) -> Self
Safety Read more
sourceimpl FromGlibPtrFull<*mut GstSample> for Sample
impl FromGlibPtrFull<*mut GstSample> for Sample
sourceunsafe fn from_glib_full(ptr: *mut GstSample) -> Self
unsafe fn from_glib_full(ptr: *mut GstSample) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*const GstSample> for Sample
impl FromGlibPtrNone<*const GstSample> for Sample
sourceunsafe fn from_glib_none(ptr: *const GstSample) -> Self
unsafe fn from_glib_none(ptr: *const GstSample) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*mut GstSample> for Sample
impl FromGlibPtrNone<*mut GstSample> for Sample
sourceunsafe fn from_glib_none(ptr: *mut GstSample) -> Self
unsafe fn from_glib_none(ptr: *mut GstSample) -> Self
Safety Read more
sourceimpl<'a> FromValue<'a> for Sample
impl<'a> FromValue<'a> for Sample
type Checker = GenericValueTypeOrNoneChecker<Sample>
type Checker = GenericValueTypeOrNoneChecker<Sample>
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 Sample
impl<'a> FromValue<'a> for &'a Sample
type Checker = GenericValueTypeOrNoneChecker<&'a Sample>
type Checker = GenericValueTypeOrNoneChecker<&'a Sample>
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 StaticType for Sample
impl StaticType for Sample
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl<'a> ToGlibContainerFromSlice<'a, *const *mut GstSample> for Sample
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstSample> for Sample
type Storage = (Vec<Stash<'a, *mut GstSample, Sample>, Global>, Option<Vec<*mut GstSample, Global>>)
fn to_glib_none_from_slice(
t: &'a [Sample]
) -> (*const *mut GstSample, Self::Storage)
fn to_glib_container_from_slice(
_: &'a [Sample]
) -> (*const *mut GstSample, Self::Storage)
fn to_glib_full_from_slice(_: &[Sample]) -> *const *mut GstSample
sourceimpl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstSample> for Sample
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstSample> for Sample
type Storage = (Vec<Stash<'a, *mut GstSample, Sample>, Global>, Option<Vec<*mut GstSample, Global>>)
fn to_glib_none_from_slice(
t: &'a [Sample]
) -> (*mut *mut GstSample, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [Sample]
) -> (*mut *mut GstSample, Self::Storage)
fn to_glib_full_from_slice(t: &[Sample]) -> *mut *mut GstSample
sourceimpl<'a> ToGlibPtrMut<'a, *mut GstSample> for Sample
impl<'a> ToGlibPtrMut<'a, *mut GstSample> for Sample
sourceimpl ToValueOptional for Sample
impl ToValueOptional for Sample
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 Sample
impl Sync for Sample
impl ValueTypeOptional for Sample
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)
🔬 This is a nightly-only experimental API. (
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
.