Enum RewriteClass Copy item path Source #[repr(u8)]
pub enum RewriteClass {
HidIn = 4,
HidOut = 5,
VendorInterrupt = 6,
VendorBulk = 7,
Control = 8,
Emit = 9,
Any = 255,
}Expand description Traffic class a rewrite rule may address (§3.14).
CATCH’s traffic classes in the write direction: exactly the set the box rewrites. The
parsed-input classes (button, key, media, axis) and the bus class have no variant.
Any acts at every surface a packet crosses.
Native HID input report as it arrived; id is the interface number. On the bound mouse, a
motion rewrite here survives only on reports the host chip leaves alone, so rewrite motion at
Emit.
Interrupt-OUT report the game PC wrote, relayed to the real device; id is the endpoint
number, direction OUT .
Interrupt traffic on a vendor interface; id is the endpoint number, direction
IN or OUT .
Bulk traffic on a vendor interface; id is the endpoint number, direction
IN or OUT .
Proxied control transfer; id is the endpoint number (0 = EP0). On EP0 only class and vendor
requests reach a rule (change descriptors with PATCH); above EP0 every request does.
Emitted bytes, after the renderer; id is the endpoint number, direction
IN . Matches injected and rendered frames as well as relayed ones.
Wire wildcard 0xFF: ranked below every other rule, id not compared, and Pass, Patch
and Replace only. It acts at each surface, so a native report can hit it at both HidIn and
Emit.
Decodes a wire class byte; None if not rewritable.
Whether this is the control class, the only one that can answer or rewrite a native reply.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Emit : emitted bytes, the most common target.
Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more 🔬 This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range.
Read more This method returns an ordering between
self and
other values if one exists.
Read more Tests less than (for
self and
other) and is used by the
< operator.
Read more Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more Tests greater than (for
self and
other) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.