[][src]Struct gstreamer::sample::SampleRef

#[repr(C)]
pub struct SampleRef(_);

Methods

impl SampleRef[src]

pub fn get_buffer(&self) -> Option<&BufferRef>[src]

pub fn get_buffer_owned(&self) -> Option<Buffer>[src]

pub fn get_buffer_list(&self) -> Option<&BufferListRef>[src]

pub fn get_buffer_list_owned(&self) -> Option<BufferList>[src]

pub fn get_caps(&self) -> Option<&CapsRef>[src]

pub fn get_caps_owned(&self) -> Option<Caps>[src]

pub fn get_segment(&self) -> Option<Segment>[src]

pub fn get_info(&self) -> Option<&StructureRef>[src]

pub fn set_buffer(&mut self, buffer: Option<&Buffer>)[src]

pub fn set_buffer_list(&mut self, buffer_list: Option<&BufferList>)[src]

pub fn set_caps(&mut self, caps: Option<&Caps>)[src]

pub fn set_segment(&mut self, segment: Option<&Segment>)[src]

pub fn set_info(&mut self, info: Option<Structure>)[src]

Trait Implementations

impl MiniObject for SampleRef[src]

type GstType = GstSample

unsafe fn as_ptr(&self) -> *const Self::GstType[src]

unsafe fn as_mut_ptr(&self) -> *mut Self::GstType[src]

unsafe fn from_ptr<'a>(ptr: *const Self::GstType) -> &'a Self[src]

unsafe fn from_mut_ptr<'a>(ptr: *mut Self::GstType) -> &'a mut Self[src]

fn copy(&self) -> GstRc<Self>[src]

impl AsRef<SampleRef> for Sample[src]

impl Sync for SampleRef[src]

impl ToOwned for SampleRef[src]

type Owned = Sample

The resulting type after obtaining ownership.

fn clone_into(&self, target: &mut Self::Owned)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl Send for SampleRef[src]

impl Debug for SampleRef[src]

impl Borrow<SampleRef> for Sample[src]

impl StaticType for SampleRef[src]

impl<'a> Serialize for SampleRef[src]

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]