gstreamer::sample

Struct SampleRef

Source
pub struct SampleRef(/* private fields */);

Implementations§

Source§

impl SampleRef

Source

pub fn as_ptr(&self) -> *const GstSample

Source

pub fn as_mut_ptr(&self) -> *mut GstSample

Source

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

Source

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

Source

pub fn copy(&self) -> Sample

Source

pub fn upcast_ref(&self) -> &MiniObjectRef

Source

pub fn upcast_mut(&mut self) -> &mut MiniObjectRef

Source

pub fn ptr_eq(this: &SampleRef, other: &SampleRef) -> bool

Source§

impl SampleRef

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Trait Implementations§

Source§

impl AsRef<SampleRef> for Sample

Source§

fn as_ref(&self) -> &SampleRef

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<SampleRef> for Sample

Source§

fn borrow(&self) -> &SampleRef

Immutably borrows from an owned value. Read more
Source§

impl Debug for SampleRef

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'a> FromValue<'a> for &'a SampleRef

Source§

type Checker = GenericValueTypeOrNoneChecker<&'a SampleRef>

Value type checker.
Source§

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

Get the contained value from a Value. Read more
Source§

impl GlibPtrDefault for SampleRef

Source§

impl Serialize for SampleRef

Source§

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

Serialize this value into the given Serde serializer. Read more
Source§

impl StaticType for SampleRef

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl ToOwned for SampleRef

Source§

type Owned = Sample

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> Sample

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§

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

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

impl Send for SampleRef

Source§

impl Sync for SampleRef

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.