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

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

Implementations

impl SampleRef[src]

pub unsafe fn as_ptr(&self) -> *const GstSample[src]

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

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

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

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

impl SampleRef[src]

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

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

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

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

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

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

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

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

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

This is supported on crate feature v1_16 only.

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

This is supported on crate feature v1_16 only.

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

This is supported on crate feature v1_16 only.

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

This is supported on crate feature v1_16 only.

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

This is supported on crate feature v1_16 only.

Trait Implementations

impl AsRef<SampleRef> for Sample[src]

fn as_ref(&self) -> &SampleRef[src]

Performs the conversion.

impl Borrow<SampleRef> for Sample[src]

fn borrow(&self) -> &SampleRef[src]

Immutably borrows from an owned value. Read more

impl Debug for SampleRef[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'a> FromValue<'a> for &'a SampleRef[src]

type Checker = GenericValueTypeOrNoneChecker<Self>

Value type checker.

unsafe fn from_value(value: &'a Value) -> Self[src]

Get the contained value from a Value. Read more

impl GlibPtrDefault for SampleRef[src]

type GlibType = *mut GstSample

impl<'a> Serialize for SampleRef[src]

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>[src]

Serialize this value into the given Serde serializer. Read more

impl StaticType for SampleRef[src]

fn static_type() -> Type[src]

Returns the type identifier of Self.

impl ToOwned for SampleRef[src]

type Owned = Sample

The resulting type after obtaining ownership.

fn to_owned(&self) -> Sample[src]

Creates owned data from borrowed data, usually by cloning. Read more

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 Sync for SampleRef[src]

Auto Trait Implementations

impl RefUnwindSafe for SampleRef

impl Unpin for SampleRef

impl UnwindSafe for SampleRef

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

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

Immutably borrows from an owned value. Read more

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

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

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.