[−][src]Struct arducam_mipicamera::Buffer
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,