pub enum MessagePayload {
Alert(AlertMessagePayload),
Handshake(HandshakeMessagePayload),
TLS12EncryptedHandshake(Payload),
ChangeCipherSpec(ChangeCipherSpecPayload),
ApplicationData(Payload),
Heartbeat(HeartbeatPayload),
}
Variants§
Alert(AlertMessagePayload)
Handshake(HandshakeMessagePayload)
TLS12EncryptedHandshake(Payload)
ChangeCipherSpec(ChangeCipherSpecPayload)
ApplicationData(Payload)
Heartbeat(HeartbeatPayload)
Implementations§
source§impl MessagePayload
impl MessagePayload
pub fn encode(&self, bytes: &mut Vec<u8>)
pub fn new( typ: ContentType, vers: ProtocolVersion, payload: Payload, ) -> Result<Self, Error>
sourcepub fn multiple_new(
typ: ContentType,
vers: ProtocolVersion,
payload: Payload,
) -> Result<Vec<Self>, Error>
pub fn multiple_new( typ: ContentType, vers: ProtocolVersion, payload: Payload, ) -> Result<Vec<Self>, Error>
Extract multiple messages payloads from one ApplicationData message
pub fn content_type(&self) -> ContentType
Trait Implementations§
source§impl Clone for MessagePayload
impl Clone for MessagePayload
source§fn clone(&self) -> MessagePayload
fn clone(&self) -> MessagePayload
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 Debug for MessagePayload
impl Debug for MessagePayload
source§impl EvaluatedTerm<TLSProtocolTypes> for MessagePayload
impl EvaluatedTerm<TLSProtocolTypes> for MessagePayload
source§fn extract_knowledge<'a>(
&'a self,
knowledges: &mut Vec<Knowledge<'a, TLSProtocolTypes>>,
matcher: Option<TlsQueryMatcher>,
source: &'a Source,
) -> Result<(), Error>
fn extract_knowledge<'a>( &'a self, knowledges: &mut Vec<Knowledge<'a, TLSProtocolTypes>>, matcher: Option<TlsQueryMatcher>, source: &'a Source, ) -> Result<(), Error>
Fill
knowledges
with new knowledge gathered form the type implementing EvaluatedTerm
by recursively calling extract_knowledge on all contained element
This will put source as the source of all the produced knowledge, matcher is also passed
recursively but might be overwritten by a type with a more specific matcherAuto Trait Implementations§
impl Freeze for MessagePayload
impl RefUnwindSafe for MessagePayload
impl Send for MessagePayload
impl Sync for MessagePayload
impl Unpin for MessagePayload
impl UnwindSafe for MessagePayload
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneAny for T
impl<T> CloneAny for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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.