#[repr(transparent)]pub struct SampleRef(_);
Implementations
sourceimpl SampleRef
impl SampleRef
pub unsafe fn as_ptr(&self) -> *const GstSample
pub unsafe fn as_mut_ptr(&self) -> *mut GstSample
pub unsafe fn from_ptr<'a>(ptr: *const GstSample) -> &'a Self
pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstSample) -> &'a mut Self
pub fn copy(&self) -> Sample
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
sourceimpl SampleRef
impl SampleRef
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>
pub fn set_buffer(&mut self, buffer: Option<&Buffer>)
This is supported on crate feature
v1_16
only.pub fn set_buffer_list(&mut self, buffer_list: Option<&BufferList>)
This is supported on crate feature
v1_16
only.pub fn set_caps(&mut self, caps: Option<&Caps>)
This is supported on crate feature
v1_16
only.pub fn set_segment(&mut self, segment: Option<&Segment>)
This is supported on crate feature
v1_16
only.pub fn set_info(&mut self, info: Option<Structure>)
This is supported on crate feature
v1_16
only.Trait Implementations
sourceimpl<'a> FromValue<'a> for &'a SampleRef
impl<'a> FromValue<'a> for &'a SampleRef
type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
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 SampleRef
impl StaticType for SampleRef
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl ToOwned for SampleRef
impl ToOwned for SampleRef
impl Send for SampleRef
impl Sync for SampleRef
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.