Struct rustls::internal::msgs::alert::AlertMessagePayload [−][src]
pub struct AlertMessagePayload { pub level: AlertLevel, pub description: AlertDescription, }
Fields
level: AlertLevel
description: AlertDescription
Implementations
Trait Implementations
impl Codec for AlertMessagePayload
[src]
impl Codec for AlertMessagePayload
[src]fn read(r: &mut Reader<'_>) -> Option<AlertMessagePayload>
[src]
fn read(r: &mut Reader<'_>) -> Option<AlertMessagePayload>
[src]Decode yourself by fiddling with the Reader
.
Return Some if it worked, None if not. Read more
fn get_encoding(&self) -> Vec<u8>
[src]
fn get_encoding(&self) -> Vec<u8>
[src]Convenience function to get the results of encode()
.