[][src]Struct gstreamer::buffer::Buffer

pub struct Buffer(_);

Methods

impl Buffer[src]

pub unsafe fn from_glib_none(ptr: *const GstBuffer) -> Self[src]

pub unsafe fn from_glib_full(ptr: *const GstBuffer) -> Self[src]

pub unsafe fn from_glib_borrow(ptr: *const GstBuffer) -> Self[src]

pub unsafe fn into_ptr(self) -> *mut GstBuffer[src]

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

impl Buffer[src]

pub fn new() -> Self[src]

Creates a newly allocated buffer without any data.

MT safe.

Returns

the new Buffer.

pub fn with_size(size: usize) -> Option<Self>[src]

pub fn from_mut_slice<T: AsMut<[u8]> + Send + 'static>(slice: T) -> Self[src]

pub fn from_slice<T: AsRef<[u8]> + Send + 'static>(slice: T) -> Self[src]

pub fn into_mapped_buffer_readable(self) -> Result<MappedBuffer<Readable>, Self>[src]

pub fn into_mapped_buffer_writable(self) -> Result<MappedBuffer<Writable>, Self>[src]

pub fn append(buffer: Self, other: Self) -> Self[src]

Methods from Deref<Target = GstRc<BufferRef>>

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

pub fn get_mut(&mut self) -> Option<&mut T>[src]

pub fn is_writable(&self) -> bool[src]

pub fn add_parent<U: MiniObject>(&self, parent: &U)[src]

pub fn remove_parent<U: MiniObject>(&self, parent: &U)[src]

Trait Implementations

impl From<GstRc<BufferRef>> for Buffer[src]

impl AsRef<BufferRef> for Buffer[src]

impl Clone for Buffer[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for Buffer[src]

impl Default for Buffer[src]

impl Into<GstRc<BufferRef>> for Buffer[src]

impl PartialEq<Buffer> for Buffer[src]

impl DerefMut for Buffer[src]

impl Deref for Buffer[src]

type Target = GstRc<BufferRef>

The resulting type after dereferencing.

impl Debug for Buffer[src]

impl Borrow<BufferRef> for Buffer[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstBuffer, *mut *mut GstBuffer> for Buffer[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstBuffer, *const *mut GstBuffer> for Buffer[src]

impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstBuffer> for Buffer[src]

impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstBuffer> for Buffer[src]

impl<'a> ToGlibPtr<'a, *const GstBuffer> for Buffer[src]

type Storage = Stash<'a, *const GstBuffer, GstRc<BufferRef>>

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

impl<'a> ToGlibPtr<'a, *mut GstBuffer> for Buffer[src]

type Storage = Stash<'a, *mut GstBuffer, GstRc<BufferRef>>

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

impl FromGlibPtrFull<*const GstBuffer> for Buffer[src]

impl FromGlibPtrFull<*mut GstBuffer> for Buffer[src]

impl FromGlibContainerAsVec<*mut GstBuffer, *mut *mut GstBuffer> for Buffer[src]

impl FromGlibContainerAsVec<*mut GstBuffer, *const *mut GstBuffer> for Buffer[src]

impl<'a> ToGlibPtrMut<'a, *mut GstBuffer> for Buffer[src]

type Storage = StashMut<'a, *mut GstBuffer, GstRc<BufferRef>>

impl FromGlibPtrNone<*const GstBuffer> for Buffer[src]

impl FromGlibPtrNone<*mut GstBuffer> for Buffer[src]

impl FromGlibPtrBorrow<*const GstBuffer> for Buffer[src]

impl FromGlibPtrBorrow<*mut GstBuffer> for Buffer[src]

impl GlibPtrDefault for Buffer[src]

impl StaticType for Buffer[src]

impl SetValue for Buffer[src]

impl<'a> FromValueOptional<'a> for Buffer[src]

impl SetValueOptional for Buffer[src]

impl<'a> Serialize for Buffer[src]

impl<'de> Deserialize<'de> for Buffer[src]

Auto Trait Implementations

impl Send for Buffer

impl Sync for Buffer

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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.

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.

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

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

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

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]