Module prelude
Expand description
Public re-exported.
use rapimt::prelude::*; to import common structs, traits, etc.
Modules§
Structs§
- Default
FibLoader - Default
Inst Loader - Fast
Rule Monitor - A rule store and IM generator of a device.
- Field
Match - FieldMatch contains the name and the condition of a match in a field.
- Inverse
Model - Inverse Model maps actions to predicates.
- Masked
Value - Ternary bit string representing an entire header match.
- Multiple
- Multiple means the action is multi-dimensional, e.g. a sequence of actions.
- Oxidd
Predicate Engine - A predicate engine based on the oxidd library.
- Port
Info Base - PortInfoBase stores the information of a device’s ports and neighbors.
- Predicate
- An Predicate is a logical condition that represents a header space.
- RawRule
- Match&action-unencoded rule of a device.
- Ruddy
Predicate Engine - A predicate engine based on the Ruddy library.
- Rule
- Local rule of a device.
- SeqAction
- A sequence of actions. Optimize memory footprint when the action is valid in one dimension.
- Simple
Rule Store - Single
- Single means the action is one-dimensional, e.g., one forwarding action from a port.
- TPTRule
Store - Uncoded
Rule - Action-unencoded rule of a device.
Enums§
- AclAction
Type - Error
- FwdAction
Type - Match
- Match condition for a field.
- Typed
Action - Typed, unencoded forwarding action.
Traits§
- Action
- Action trait represents an action of desired dimension. Use type parameter to distinguish the dimension of action.
- Action
Encoder - Encoder and decoder between UncodedAction and CodedAction.
- Actions
- Container of multiple actions.
- Coded
Action - Encoded, compact and opaque action.
- Dimension
- An empty trait that represents the type of action.
- FibLoader
- Load fibs from default format.
- Instance
Loader - Load instances from default format.
- Inverse
Model Monoid - A monoid defined on the overwrite operator.
- Match
Encoder - Parse field values and encodes them into a predicate.
- Predicate
Engine - An extended trait of MatchEncoder, which additionally enables serialization and deserialization of a predicate.
- Predicate
Inner - Inner trait for Predicate.
- Rule
Like - Rule
Monitor Like - Rule storage and IM generator.
- Rule
Store - Storage of rules.
- Uncoded
Action - Unencoded action on a specific device.
Functions§
- ipv4_
to_ match - Encode an IPv4 address with prefix into a ternary match.