[−][src]Struct iocuddle::Group
A collection of related ioctl
s
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 ioctl
s 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]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,