Struct gstreamer::sample::Sample [−][src]
pub struct Sample { /* fields omitted */ }
Implementations
impl Sample
[src]
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) -> Borrowed<Self>
[src]
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstSample)
[src]
pub fn make_mut(&mut self) -> &mut SampleRef
[src]
pub fn get_mut(&mut self) -> Option<&mut SampleRef>
[src]
pub fn is_writable(&self) -> bool
[src]
pub unsafe fn into_ptr(self) -> *mut GstSample
[src]
impl Sample
[src]
impl Sample
[src]pub fn builder<'a>() -> SampleBuilder<'a>
[src]
Methods from Deref<Target = SampleRef>
pub unsafe fn as_ptr(&self) -> *const GstSample
[src]
pub unsafe fn as_mut_ptr(&self) -> *mut GstSample
[src]
pub fn copy(&self) -> Sample
[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]
Trait Implementations
impl<'de> Deserialize<'de> for Sample
[src]
impl<'de> Deserialize<'de> for Sample
[src]fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]Deserialize this value from the given Serde deserializer. Read more
impl FromGlibPtrArrayContainerAsVec<*mut GstSample, *const *mut GstSample> for Sample
[src]
impl FromGlibPtrArrayContainerAsVec<*mut GstSample, *const *mut GstSample> for Sample
[src]unsafe fn from_glib_none_as_vec(ptr: *const *mut GstSample) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(_: *const *mut GstSample) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(_: *const *mut GstSample) -> Vec<Self>
[src]
impl FromGlibPtrArrayContainerAsVec<*mut GstSample, *mut *mut GstSample> for Sample
[src]
impl FromGlibPtrArrayContainerAsVec<*mut GstSample, *mut *mut GstSample> for Sample
[src]unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstSample) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstSample) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstSample) -> Vec<Self>
[src]
impl FromGlibPtrBorrow<*const GstSample> for Sample
[src]
impl FromGlibPtrBorrow<*const GstSample> for Sample
[src]unsafe fn from_glib_borrow(ptr: *const GstSample) -> Borrowed<Self>
[src]
unsafe fn from_glib_borrow(ptr: *const GstSample) -> Borrowed<Self>
[src]Safety Read more
impl FromGlibPtrBorrow<*mut GstSample> for Sample
[src]
impl FromGlibPtrBorrow<*mut GstSample> for Sample
[src]unsafe fn from_glib_borrow(ptr: *mut GstSample) -> Borrowed<Self>
[src]
unsafe fn from_glib_borrow(ptr: *mut GstSample) -> Borrowed<Self>
[src]Safety Read more
impl FromGlibPtrFull<*const GstSample> for Sample
[src]
impl FromGlibPtrFull<*const GstSample> for Sample
[src]unsafe fn from_glib_full(ptr: *const GstSample) -> Self
[src]
unsafe fn from_glib_full(ptr: *const GstSample) -> Self
[src]Safety Read more
impl FromGlibPtrFull<*mut GstSample> for Sample
[src]
impl FromGlibPtrFull<*mut GstSample> for Sample
[src]unsafe fn from_glib_full(ptr: *mut GstSample) -> Self
[src]
unsafe fn from_glib_full(ptr: *mut GstSample) -> Self
[src]Safety Read more
impl FromGlibPtrNone<*const GstSample> for Sample
[src]
impl FromGlibPtrNone<*const GstSample> for Sample
[src]unsafe fn from_glib_none(ptr: *const GstSample) -> Self
[src]
unsafe fn from_glib_none(ptr: *const GstSample) -> Self
[src]Safety Read more
impl FromGlibPtrNone<*mut GstSample> for Sample
[src]
impl FromGlibPtrNone<*mut GstSample> for Sample
[src]unsafe fn from_glib_none(ptr: *mut GstSample) -> Self
[src]
unsafe fn from_glib_none(ptr: *mut GstSample) -> Self
[src]Safety Read more
impl<'a> FromValue<'a> for Sample
[src]
impl<'a> FromValue<'a> for Sample
[src]type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
Value type checker.
unsafe fn from_value(value: &'a Value) -> Self
[src]
unsafe fn from_value(value: &'a Value) -> Self
[src]Get the contained value from a Value
. Read more
impl GlibPtrDefault for Sample
[src]
impl GlibPtrDefault for Sample
[src]impl StaticType for Sample
[src]
impl StaticType for Sample
[src]fn static_type() -> Type
[src]
fn static_type() -> Type
[src]Returns the type identifier of Self
.
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstSample> for Sample
[src]
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstSample> for Sample
[src]type Storage = (Vec<Stash<'a, *mut GstSample, Sample>>, Option<Vec<*mut GstSample>>)
fn to_glib_none_from_slice(
t: &'a [Sample]
) -> (*const *mut GstSample, Self::Storage)
[src]
t: &'a [Sample]
) -> (*const *mut GstSample, Self::Storage)
fn to_glib_container_from_slice(
_: &'a [Sample]
) -> (*const *mut GstSample, Self::Storage)
[src]
_: &'a [Sample]
) -> (*const *mut GstSample, Self::Storage)
fn to_glib_full_from_slice(_: &[Sample]) -> *const *mut GstSample
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstSample> for Sample
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstSample> for Sample
[src]type Storage = (Vec<Stash<'a, *mut GstSample, Self>>, Option<Vec<*mut GstSample>>)
fn to_glib_none_from_slice(
t: &'a [Sample]
) -> (*mut *mut GstSample, Self::Storage)
[src]
t: &'a [Sample]
) -> (*mut *mut GstSample, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [Sample]
) -> (*mut *mut GstSample, Self::Storage)
[src]
t: &'a [Sample]
) -> (*mut *mut GstSample, Self::Storage)
fn to_glib_full_from_slice(t: &[Sample]) -> *mut *mut GstSample
[src]
impl<'a> ToGlibPtr<'a, *const GstSample> for Sample
[src]
impl<'a> ToGlibPtr<'a, *const GstSample> for Sample
[src]type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *const GstSample, Self>
[src]
fn to_glib_none(&'a self) -> Stash<'a, *const GstSample, Self>
[src]Transfer: none. Read more
fn to_glib_full(&self) -> *const GstSample
[src]
fn to_glib_full(&self) -> *const GstSample
[src]Transfer: full. Read more
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]Transfer: container. Read more
impl<'a> ToGlibPtr<'a, *mut GstSample> for Sample
[src]
impl<'a> ToGlibPtr<'a, *mut GstSample> for Sample
[src]type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *mut GstSample, Self>
[src]
fn to_glib_none(&'a self) -> Stash<'a, *mut GstSample, Self>
[src]Transfer: none. Read more
fn to_glib_full(&self) -> *mut GstSample
[src]
fn to_glib_full(&self) -> *mut GstSample
[src]Transfer: full. Read more
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]Transfer: container. Read more
impl<'a> ToGlibPtrMut<'a, *mut GstSample> for Sample
[src]
impl<'a> ToGlibPtrMut<'a, *mut GstSample> for Sample
[src]impl ToValueOptional for Sample
[src]
impl ToValueOptional for Sample
[src]fn to_value_optional(s: Option<&Self>) -> Value
[src]
fn to_value_optional(s: Option<&Self>) -> Value
[src]Convert an Option
to a Value
.
impl Send for Sample
[src]
impl Sync for Sample
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[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<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
pub fn to_send_value(&self) -> SendValue
[src]Returns a SendValue
clone of self
.
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<'a, T, C> FromValueOptional<'a> for T where
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,
[src]
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,