Struct gstreamer::buffer::BufferRef[][src]

#[repr(transparent)]
pub struct BufferRef(_);

Implementations

impl BufferRef[src]

pub unsafe fn as_ptr(&self) -> *const GstBuffer[src]

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

pub unsafe fn from_ptr<'a>(ptr: *const GstBuffer) -> &'a Self[src]

pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstBuffer) -> &'a mut Self[src]

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

impl BufferRef[src]

pub fn map_readable(&self) -> Result<BufferMap<'_, Readable>, BoolError>[src]

pub fn map_writable(&mut self) -> Result<BufferMap<'_, Writable>, BoolError>[src]

pub fn copy_region(
    &self,
    flags: BufferCopyFlags,
    offset: usize,
    size: Option<usize>
) -> Result<Buffer, BoolError>
[src]

pub fn copy_into(
    &self,
    dest: &mut BufferRef,
    flags: BufferCopyFlags,
    offset: usize,
    size: Option<usize>
) -> Result<(), BoolError>
[src]

pub fn copy_from_slice(
    &mut self,
    offset: usize,
    slice: &[u8]
) -> Result<(), usize>
[src]

pub fn copy_to_slice(
    &self,
    offset: usize,
    slice: &mut [u8]
) -> Result<(), usize>
[src]

pub fn copy_deep(&self) -> Result<Buffer, BoolError>[src]

pub fn size(&self) -> usize[src]

pub fn maxsize(&self) -> usize[src]

pub fn set_size(&mut self, size: usize)[src]

pub fn offset(&self) -> u64[src]

pub fn set_offset(&mut self, offset: u64)[src]

pub fn offset_end(&self) -> u64[src]

pub fn set_offset_end(&mut self, offset_end: u64)[src]

pub fn pts(&self) -> ClockTime[src]

pub fn set_pts(&mut self, pts: ClockTime)[src]

pub fn dts(&self) -> ClockTime[src]

pub fn set_dts(&mut self, dts: ClockTime)[src]

pub fn dts_or_pts(&self) -> ClockTime[src]

pub fn duration(&self) -> ClockTime[src]

pub fn set_duration(&mut self, duration: ClockTime)[src]

pub fn flags(&self) -> BufferFlags[src]

pub fn set_flags(&mut self, flags: BufferFlags)[src]

pub fn unset_flags(&mut self, flags: BufferFlags)[src]

pub fn meta<T: MetaAPI>(&self) -> Option<MetaRef<'_, T>>[src]

pub fn meta_mut<T: MetaAPI>(&mut self) -> Option<MetaRefMut<'_, T, Standalone>>[src]

pub fn iter_meta<T: MetaAPI>(&self) -> MetaIter<'_, T>

Notable traits for MetaIter<'a, T>

impl<'a, T: MetaAPI> Iterator for MetaIter<'a, T> type Item = MetaRef<'a, T>;
[src]

pub fn iter_meta_mut<T: MetaAPI>(&mut self) -> MetaIterMut<'_, T>

Notable traits for MetaIterMut<'a, T>

impl<'a, T: MetaAPI> Iterator for MetaIterMut<'a, T> type Item = MetaRefMut<'a, T, Iterated>;
[src]

pub fn foreach_meta<F: FnMut(MetaRef<'_, Meta>) -> bool>(&self, func: F) -> bool[src]

pub fn foreach_meta_mut<F: FnMut(MetaRefMut<'_, Meta, Iterated>) -> Result<bool, bool>>(
    &mut self,
    func: F
) -> bool
[src]

pub fn append_memory(&mut self, mem: Memory)[src]

pub fn find_memory(
    &self,
    offset: usize,
    size: Option<usize>
) -> Option<(u32, u32, usize)>
[src]

pub fn all_memory(&self) -> Option<Memory>[src]

pub fn max_memory() -> u32[src]

pub fn memory(&self, idx: u32) -> Option<Memory>[src]

pub fn memory_range(&self, idx: u32, length: Option<u32>) -> Option<Memory>[src]

pub fn insert_memory(&mut self, idx: Option<u32>, mem: Memory)[src]

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

pub fn is_memory_range_writable(&self, idx: u32, length: Option<u16>) -> bool[src]

pub fn n_memory(&self) -> u32[src]

pub fn peek_memory(&self, idx: u32) -> &MemoryRef[src]

pub fn peek_memory_mut(&mut self, idx: u32) -> Result<&mut MemoryRef, BoolError>[src]

pub fn prepend_memory(&mut self, mem: Memory)[src]

pub fn remove_all_memory(&mut self)[src]

pub fn remove_memory(&mut self, idx: u32)[src]

pub fn remove_memory_range(&mut self, idx: u32, length: Option<u32>)[src]

pub fn replace_all_memory(&mut self, mem: Memory)[src]

pub fn replace_memory(&mut self, idx: u32, mem: Memory)[src]

pub fn replace_memory_range(
    &mut self,
    idx: u32,
    length: Option<u32>,
    mem: Memory
)
[src]

pub fn iter_memories(&self) -> Iter<'_>

Notable traits for Iter<'a>

impl<'a> Iterator for Iter<'a> type Item = &'a MemoryRef;
[src]

pub fn iter_memories_mut(&mut self) -> Result<IterMut<'_>, BoolError>[src]

pub fn iter_memories_owned(&self) -> IterOwned<'_>

Notable traits for IterOwned<'a>

impl<'a> Iterator for IterOwned<'a> type Item = Memory;
[src]

pub fn as_cursor_readable(&self) -> BufferRefCursor<&BufferRef>

Notable traits for BufferRefCursor<&'a BufferRef>

impl<'a> Read for BufferRefCursor<&'a BufferRef>impl<'a> Write for BufferRefCursor<&'a mut BufferRef>
[src]

pub fn as_cursor_writable(
    &mut self
) -> Result<BufferRefCursor<&mut BufferRef>, BoolError>
[src]

Trait Implementations

impl AsRef<BufferRef> for Buffer[src]

fn as_ref(&self) -> &BufferRef[src]

Performs the conversion.

impl Borrow<BufferRef> for Buffer[src]

fn borrow(&self) -> &BufferRef[src]

Immutably borrows from an owned value. Read more

impl Debug for BufferRef[src]

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

Formats the value using the given formatter. Read more

impl<'a> FromValue<'a> for &'a BufferRef[src]

type Checker = GenericValueTypeOrNoneChecker<Self>

Value type checker.

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

Get the contained value from a Value. Read more

impl GlibPtrDefault for BufferRef[src]

type GlibType = *mut GstBuffer

impl PartialEq<BufferRef> for BufferRef[src]

fn eq(&self, other: &BufferRef) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<'a> Serialize for BufferRef[src]

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

Serialize this value into the given Serde serializer. Read more

impl StaticType for BufferRef[src]

fn static_type() -> Type[src]

Returns the type identifier of Self.

impl ToOwned for BufferRef[src]

type Owned = Buffer

The resulting type after obtaining ownership.

fn to_owned(&self) -> Buffer[src]

Creates owned data from borrowed data, usually by cloning. Read more

fn clone_into(&self, target: &mut Self::Owned)[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 Eq for BufferRef[src]

impl Send for BufferRef[src]

impl Sync for BufferRef[src]

Auto Trait Implementations

impl RefUnwindSafe for BufferRef

impl Unpin for BufferRef

impl UnwindSafe for BufferRef

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

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

Immutably borrows from an owned value. Read more

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

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

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

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

Performs the conversion.

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.

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

Performs the conversion.