[][src]Struct iocuddle::Group

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

A collection of related ioctls

In the Linux kernel macros, this is called the ioctl type. We have chosen a distinct name to disambiguate from the ioctl argument type.

Implementations

impl Group[src]

pub const fn new(value: u8) -> Self[src]

Create a new group for related ioctls from its allocated number

pub const unsafe fn read<'a, T>(self, nr: u8) -> Ioctl<Read, &'a T>[src]

Define a new Read ioctl with an associated type

The nr argument is the allocated integer which uniquely identifies this ioctl within the Group.

Safety

For safety details, see Ioctl::classic.

pub const unsafe fn write<'a, T>(self, nr: u8) -> Ioctl<Write, &'a T>[src]

Define a new Write ioctl with an associated type

The nr argument is the allocated integer which uniquely identifies this ioctl within the Group.

Safety

For safety details, see Ioctl::classic.

pub const unsafe fn write_read<'a, T>(self, nr: u8) -> Ioctl<WriteRead, &'a T>[src]

Define a new WriteRead ioctl with an associated type

The nr argument is the allocated integer which uniquely identifies this ioctl within the Group.

Safety

For safety details, see Ioctl::classic.

Trait Implementations

impl Clone for Group[src]

impl Copy for Group[src]

impl Eq for Group[src]

impl PartialEq<Group> for Group[src]

impl StructuralEq for Group[src]

impl StructuralPartialEq for Group[src]

Auto Trait Implementations

impl RefUnwindSafe for Group

impl Send for Group

impl Sync for Group

impl Unpin for Group

impl UnwindSafe for Group

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.