#[repr(transparent)]
pub struct Internal<T>(pub T);

Tuple Fields§

§0: T

Implementations§

source§

impl Internal<RequestBuffers>

source

pub fn request( fd: RawFd, type_: BufferType, memory: Memory, count: u32 ) -> Result<Self>

Request buffers

source§

impl Internal<Buffer>

source

pub fn new(type_: BufferType, memory: Memory, index: u32) -> Self

Instantiate buffer

source

pub fn query(&mut self, fd: RawFd) -> Result<()>

Query bufer by index

source

pub fn queue(&mut self, fd: RawFd) -> Result<()>

Queue buffer

source

pub fn dequeue(&mut self, fd: RawFd) -> Result<()>

Dequeue buffer

source

pub fn mark_dequeued(&mut self)

source§

impl<Dir, Met: Method> Internal<QueueData<Dir, Met>>

source

pub fn new(fd: RawFd, content_type: ContentType, count: u32) -> Result<Self>where Dir: Direction,

Create buffers queue

source

pub fn del(&mut self, fd: RawFd) -> Result<()>

Delete buffers queue

source

pub fn next(&self, fd: RawFd) -> Result<BufferRef<Dir, Met>>where Dir: Direction,

Get next buffer to read or write

source§

impl Internal<Capability>

source

pub fn query(fd: RawFd) -> Result<Self>

Query capabilities from file descriptor

source§

impl Internal<QueryCtrl>

source

pub fn query(fd: RawFd, id: u32) -> Result<Self>

source

pub fn query_next(fd: RawFd, prev_id: u32) -> Result<Option<Self>>

source§

impl Internal<QueryExtCtrl>

source

pub fn query(fd: RawFd, id: u32) -> Result<Self>

source

pub fn query_next(fd: RawFd, prev_id: u32) -> Result<Option<Self>>

source

pub fn query_fallback(fd: RawFd, id: u32) -> Result<Self>

source

pub fn query_next_fallback(fd: RawFd, prev_id: u32) -> Result<Option<Self>>

source§

impl Internal<QueryMenu>

source

pub fn query(fd: RawFd, id: u32, index: u32) -> Result<Option<Self>>

source

pub fn into_item(self, type_: CtrlType, index: u32) -> MenuItem

source§

impl Internal<MenuItem>

source

pub fn query( fd: RawFd, ctrl_type: CtrlType, ctrl_id: u32, index: u32 ) -> Result<Option<Internal<MenuItem>>>

source§

impl Internal<ExtControl>

source

pub fn new(ctrl: &QueryExtCtrl) -> Self

source

pub fn del(&mut self)

source§

impl Internal<Event>

source

pub fn dequeue(fd: RawFd) -> Result<Self>

Dequeue event

source§

impl Internal<&mut Format>

source

pub fn get(&mut self, fd: RawFd) -> Result<()>

source§

impl Internal<&mut Format>

source

pub fn set(&self, fd: RawFd) -> Result<()>

source

pub fn try_(&self, fd: RawFd) -> Result<()>

source§

impl Internal<FmtDesc>

source

pub fn query(fd: RawFd, index: u32, type_: BufferType) -> Result<Option<Self>>

source§

impl Internal<FrmIvalEnum>

source

pub fn query( fd: RawFd, index: u32, pixel_format: FourCc, width: u32, height: u32 ) -> Result<Option<Self>>

source§

impl Internal<FrmSizeEnum>

source

pub fn query( fd: RawFd, index: u32, pixel_format: FourCc ) -> Result<Option<Self>>

source§

impl<T> Internal<T>

source

pub fn into_inner(self) -> T

source

pub fn map<R>(self, mapper: impl FnOnce(T) -> R) -> Internal<R>

Trait Implementations§

source§

impl<T> AsMut<T> for Internal<T>

source§

fn as_mut(&mut self) -> &mut T

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T> AsRef<T> for Internal<T>

source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Clone> Clone for Internal<T>

source§

fn clone(&self) -> Internal<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for Internal<T>

source§

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

Formats the value using the given formatter. Read more
source§

impl<T> Deref for Internal<T>

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<T> DerefMut for Internal<T>

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl<T: Display> Display for Internal<T>

source§

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

Formats the value using the given formatter. Read more
source§

impl<T> From<T> for Internal<T>

source§

fn from(this: T) -> Self

Converts to this type from the input type.
source§

impl<T: Copy> Copy for Internal<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for Internal<T>where T: RefUnwindSafe,

§

impl<T> Send for Internal<T>where T: Send,

§

impl<T> Sync for Internal<T>where T: Sync,

§

impl<T> Unpin for Internal<T>where T: Unpin,

§

impl<T> UnwindSafe for Internal<T>where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<!> for T

source§

fn from(t: !) -> T

Converts to this type from the input type.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

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

Performs the conversion.