#[repr(transparent)]pub struct Sample { /* private fields */ }
Implementations§
source§impl 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
Methods from Deref<Target = SampleRef>§
pub fn as_ptr(&self) -> *const GstSample
pub 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§
source§impl<'de> Deserialize<'de> for Sample
impl<'de> Deserialize<'de> for Sample
source§fn 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
source§impl<'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.
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 Sample
impl<'a> FromValue<'a> for Sample
§type Checker = GenericValueTypeOrNoneChecker<Sample>
type Checker = GenericValueTypeOrNoneChecker<Sample>
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 IntoGlibPtr<*mut GstSample> for Sample
impl IntoGlibPtr<*mut GstSample> for Sample
source§unsafe fn into_glib_ptr(self) -> *mut GstSample
unsafe fn into_glib_ptr(self) -> *mut GstSample
Transfer: full.
source§impl StaticType for Sample
impl StaticType for Sample
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl<'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
source§impl<'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
source§impl ToValueOptional for Sample
impl ToValueOptional for Sample
impl Send for Sample
impl Sync for Sample
impl ValueTypeOptional for Sample
Auto Trait Implementations§
Blanket Implementations§
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> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.