[][src]Struct gstreamer::sample::Sample

pub struct Sample(_);

Methods

impl Sample[src]

pub unsafe fn from_glib_none(ptr: *const GstSample) -> Self[src]

pub unsafe fn from_glib_full(ptr: *const GstSample) -> Self[src]

pub unsafe fn from_glib_borrow(ptr: *const GstSample) -> Self[src]

pub unsafe fn into_ptr(self) -> *mut GstSample[src]

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

impl Sample[src]

pub fn new<F: FormattedValue>(
    buffer: Option<&Buffer>,
    caps: Option<&Caps>,
    segment: Option<&FormattedSegment<F>>,
    info: Option<Structure>
) -> Self
[src]

Create a new Sample with the provided details.

Free-function: gst_sample_unref

buffer

a Buffer, or None

caps

a Caps, or None

segment

a Segment, or None

info

a Structure, or None

Returns

the new Sample. gst_sample_unref after usage.

pub fn with_buffer_list<F: FormattedValue>(
    buffer_list: Option<&BufferList>,
    caps: Option<&Caps>,
    segment: Option<&FormattedSegment<F>>,
    info: Option<Structure>
) -> Self
[src]

Methods from Deref<Target = GstRc<SampleRef>>

pub fn make_mut(&mut self) -> &mut T[src]

pub fn get_mut(&mut self) -> Option<&mut T>[src]

pub fn is_writable(&self) -> bool[src]

pub fn add_parent<U: MiniObject>(&self, parent: &U)[src]

pub fn remove_parent<U: MiniObject>(&self, parent: &U)[src]

Trait Implementations

impl From<GstRc<SampleRef>> for Sample[src]

impl AsRef<SampleRef> for Sample[src]

impl Clone for Sample[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Into<GstRc<SampleRef>> for Sample[src]

impl DerefMut for Sample[src]

impl Deref for Sample[src]

type Target = GstRc<SampleRef>

The resulting type after dereferencing.

impl Debug for Sample[src]

impl Borrow<SampleRef> for Sample[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstSample, *mut *mut GstSample> for Sample[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstSample, *const *mut GstSample> for Sample[src]

impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstSample> for Sample[src]

impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstSample> for Sample[src]

impl<'a> ToGlibPtr<'a, *const GstSample> for Sample[src]

type Storage = Stash<'a, *const GstSample, GstRc<SampleRef>>

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

impl<'a> ToGlibPtr<'a, *mut GstSample> for Sample[src]

type Storage = Stash<'a, *mut GstSample, GstRc<SampleRef>>

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

impl FromGlibPtrFull<*const GstSample> for Sample[src]

impl FromGlibPtrFull<*mut GstSample> for Sample[src]

impl FromGlibContainerAsVec<*mut GstSample, *mut *mut GstSample> for Sample[src]

impl FromGlibContainerAsVec<*mut GstSample, *const *mut GstSample> for Sample[src]

impl<'a> ToGlibPtrMut<'a, *mut GstSample> for Sample[src]

type Storage = StashMut<'a, *mut GstSample, GstRc<SampleRef>>

impl FromGlibPtrNone<*const GstSample> for Sample[src]

impl FromGlibPtrNone<*mut GstSample> for Sample[src]

impl FromGlibPtrBorrow<*const GstSample> for Sample[src]

impl FromGlibPtrBorrow<*mut GstSample> for Sample[src]

impl GlibPtrDefault for Sample[src]

impl StaticType for Sample[src]

impl SetValue for Sample[src]

impl<'a> FromValueOptional<'a> for Sample[src]

impl SetValueOptional for Sample[src]

impl<'a> Serialize for Sample[src]

impl<'de> Deserialize<'de> for Sample[src]

Auto Trait Implementations

impl Send for Sample

impl Sync for Sample

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]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]