dope_sys/ring/inspect.rs
1/// Verifies every opcode required by the native request implementation.
2pub trait Inspect {
3 type Code: Copy + Eq;
4 type Register;
5
6 fn inspect(&mut self) -> Result<(), Unsupported<Self::Code, Self::Register>>;
7}
8
9/// Opcode capability rejection or the exact probe registration failure.
10#[derive(Clone, Copy, Debug, Eq, PartialEq)]
11pub enum Unsupported<C, E> {
12 Opcode(C),
13 Register(E),
14}