#[repr(transparent)]pub struct SampleRef(_);
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
§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§
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> 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.