pub struct HeartbeatPayload {
pub typ: HeartbeatMessageType,
pub payload: PayloadU16,
pub fake_length: Option<u16>,
}
Fields§
§typ: HeartbeatMessageType
§payload: PayloadU16
§fake_length: Option<u16>
Trait Implementations§
source§impl Clone for HeartbeatPayload
impl Clone for HeartbeatPayload
source§fn clone(&self) -> HeartbeatPayload
fn clone(&self) -> HeartbeatPayload
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Codec for HeartbeatPayload
impl Codec for HeartbeatPayload
source§fn read(r: &mut Reader<'_>) -> Option<HeartbeatPayload>
fn read(r: &mut Reader<'_>) -> Option<HeartbeatPayload>
Decode yourself by fiddling with the
Reader
.
Return Some if it worked, None if not.source§fn get_encoding(&self) -> Vec<u8, Global> ⓘ
fn get_encoding(&self) -> Vec<u8, Global> ⓘ
Convenience function to get the results of
encode()
.source§fn read_bytes(bytes: &[u8]) -> Option<Self>
fn read_bytes(bytes: &[u8]) -> Option<Self>
Read one of these from the front of
bytes
and
return it.source§impl Debug for HeartbeatPayload
impl Debug for HeartbeatPayload
source§impl ExtractKnowledge<TlsQueryMatcher> for HeartbeatPayload
impl ExtractKnowledge<TlsQueryMatcher> for HeartbeatPayload
source§fn extract_knowledge(
&self,
knowledges: &mut Vec<Knowledge<TlsQueryMatcher>>,
matcher: Option<TlsQueryMatcher>,
source: &Source
) -> Result<(), Error>
fn extract_knowledge(
&self,
knowledges: &mut Vec<Knowledge<TlsQueryMatcher>>,
matcher: Option<TlsQueryMatcher>,
source: &Source
) -> Result<(), Error>
Fill
knowledges
with new knowledge gathered form the type implementing ExtractKnowledge
by recursively calling extract_knowledge on all contained element
This will put source as the source of all the produced knowledges, matcher is also passed
recursively but might be overriten by a type with a more specific matcherAuto Trait Implementations§
impl RefUnwindSafe for HeartbeatPayload
impl Send for HeartbeatPayload
impl Sync for HeartbeatPayload
impl Unpin for HeartbeatPayload
impl UnwindSafe for HeartbeatPayload
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.