[][src]Struct arducam_mipicamera::Buffer

pub struct Buffer { /* fields omitted */ }

Buffer returned by Camera::capture.

Implementations

impl Buffer[src]

pub fn data(&self) -> &[u8][src]

The data contained in the buffer.

pub fn timestamp(&self) -> Option<i64>[src]

The presentation timestamp of the buffer.

Returns None when the buffer timestamp is set to TIME_UNKNOWN.

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

Access to the raw Buffer structure.

pub unsafe fn raw_buffer_mut(&mut self) -> &mut Buffer[src]

Mutable access to the raw Buffer structure.

pub fn raw_pointer(&self) -> *mut Buffer[src]

The raw pointer to the Buffer structure, as used by the C interface.

pub unsafe fn from_raw_pointer(ptr: *mut Buffer) -> Self[src]

Take ownership of a raw Buffer.

The pointer must be valid and non-null.

Trait Implementations

impl Drop for Buffer[src]

Auto Trait Implementations

impl RefUnwindSafe for Buffer

impl !Send for Buffer

impl !Sync for Buffer

impl Unpin for Buffer

impl UnwindSafe for Buffer

Blanket Implementations

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

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

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

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

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.