Module protocol

Module protocol 

Source

Constants§

ALL_CORPORA
Name of the pseudo-corpus that expands to every corpus registered for the protocol (see build_corpus).

Traits§

AsAny
CompareKnowledge
EvaluatedTerm
EvaluatedTerm: have both Codec and a way to extract knowledge out of a Message/OpaqueMessage or any type that might be used in a precomputation
Extractable
Fill knowledges with new knowledge gathered form the type implementing EvaluatedTerm by recursively calling extract_knowledge on all contained element Knowledges can be extracted from using extract_knowledge
OpaqueProtocolMessage
A non-structured version of ProtocolMessage. This can be used for example for encrypted messages which do not have a structure.
OpaqueProtocolMessageFlight
Store a flight of opaque messages, a vec of all the messages sent by the PUT between two steps
ProtocolBehavior
Defines the protocol which is being tested.
ProtocolMessage
A structured message. This type defines how all possible messages of a protocol. Usually this is implemented using an enum.
ProtocolMessageDeframer
Deframes a stream of bytes into distinct OpaqueProtocolMessages.
ProtocolMessageFlight
Store a message flight, a vec of all the messages sent by the PUT between two steps
ProtocolTypes
Defines the types used to manipulate and concretize Terms

Functions§

build_corpus
Build the seeds for the requested corpus_list, restricted to the intersection of what every PUT in puts supports.
build_corpus_with 🔒
Core of build_corpus, parameterized on the corpus builders so the selection/intersection/dedup logic can be unit-tested with synthetic corpuses independently of any concrete ProtocolBehavior::corpus_registry.
oversized_step 🔒
First input step of trace whose recipe reaches max_result_term_size nodes, as (step index, size).

Type Aliases§

CorpusBuilder
A function producing the seeds of one named corpus for a single PUT factory.