#[repr(transparent)]pub struct SampleRef(GstSample);
Tuple Fields§
§0: GstSample
Implementations§
source§impl SampleRef
impl SampleRef
pub fn as_ptr(&self) -> *const GstSample
pub 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
pub fn ptr_eq(this: &SampleRef, other: &SampleRef) -> bool
source§impl 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>)
pub fn set_buffer_list(&mut self, buffer_list: Option<&BufferList>)
pub fn set_caps(&mut self, caps: Option<&Caps>)
pub fn set_segment(&mut self, segment: Option<&Segment>)
pub fn set_info(&mut self, info: Option<Structure>)
Trait Implementations§
source§impl<'a> FromValue<'a> for &'a SampleRef
impl<'a> FromValue<'a> for &'a SampleRef
source§type Checker = GenericValueTypeOrNoneChecker<&'a SampleRef>
type Checker = GenericValueTypeOrNoneChecker<&'a SampleRef>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl StaticType for SampleRef
impl StaticType for SampleRef
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToOwned for SampleRef
impl ToOwned for SampleRef
impl Send for SampleRef
impl Sync for SampleRef
Auto Trait Implementations§
impl Freeze for SampleRef
impl RefUnwindSafe for SampleRef
impl !Unpin for SampleRef
impl UnwindSafe for SampleRef
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moresource§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.