pub struct Knowledge<M: Matcher> {
pub source: Source,
pub matcher: Option<M>,
pub data: Box<dyn VariableData>,
}
Expand description
Knowledge describes an atomic piece of knowledge inferred by the
crate::protocol::ExtractKnowledge::extract_knowledge
function
Knowledge is made of the data, the source of the output, the
TLS message type and the internal type.
Fields§
§source: Source
§matcher: Option<M>
§data: Box<dyn VariableData>
Implementations§
source§impl<M: Matcher> Knowledge<M>
impl<M: Matcher> Knowledge<M>
pub fn debug_print<PB>(&self, ctx: &TraceContext<PB>, source: &Source)where
PB: ProtocolBehavior<Matcher = M>,
Trait Implementations§
Auto Trait Implementations§
impl<M> !RefUnwindSafe for Knowledge<M>
impl<M> !Send for Knowledge<M>
impl<M> !Sync for Knowledge<M>
impl<M> Unpin for Knowledge<M>where
M: Unpin,
impl<M> !UnwindSafe for Knowledge<M>
Blanket Implementations§
§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [
TupleList
], of an [Prepend::prepend()
] call,
including the prepended entry.