Trait rustix::ioctl::CompileTimeOpcode

source ·
pub trait CompileTimeOpcode {
    const OPCODE: Opcode;
}
Expand description

Trait for something that provides an ioctl opcode at compile time.

Required Associated Constants§

source

const OPCODE: Opcode

The opcode.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<const GROUP: u8, const NUM: u8, Data> CompileTimeOpcode for NoneOpcode<GROUP, NUM, Data>

source§

impl<const GROUP: u8, const NUM: u8, Data> CompileTimeOpcode for ReadOpcode<GROUP, NUM, Data>

source§

impl<const GROUP: u8, const NUM: u8, Data> CompileTimeOpcode for ReadWriteOpcode<GROUP, NUM, Data>

source§

impl<const GROUP: u8, const NUM: u8, Data> CompileTimeOpcode for WriteOpcode<GROUP, NUM, Data>

source§

impl<const OPCODE: RawOpcode> CompileTimeOpcode for BadOpcode<OPCODE>