Struct Internal

Source
#[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 Internal<&mut StreamParm>

Source

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

Source§

impl Internal<&mut StreamParm>

Source

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

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>

Source§

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> Freeze for Internal<T>
where T: Freeze,

§

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 T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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 T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

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

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.