pub struct TlsRecordType(pub u8);
Expand description
Content type, as defined in IANA TLS ContentType registry
Tuple Fields§
§0: u8
Implementations§
Source§impl TlsRecordType
impl TlsRecordType
pub const ChangeCipherSpec: TlsRecordType
pub const Alert: TlsRecordType
pub const Handshake: TlsRecordType
pub const ApplicationData: TlsRecordType
pub const Heartbeat: TlsRecordType
Trait Implementations§
Source§impl Clone for TlsRecordType
impl Clone for TlsRecordType
Source§fn clone(&self) -> TlsRecordType
fn clone(&self) -> TlsRecordType
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 TlsRecordType
impl Debug for TlsRecordType
Source§impl Display for TlsRecordType
impl Display for TlsRecordType
Source§impl From<TlsRecordType> for u8
impl From<TlsRecordType> for u8
Source§fn from(v: TlsRecordType) -> u8
fn from(v: TlsRecordType) -> u8
Converts to this type from the input type.
Source§impl<'nom> Parse<&'nom [u8]> for TlsRecordType
impl<'nom> Parse<&'nom [u8]> for TlsRecordType
Source§impl PartialEq for TlsRecordType
impl PartialEq for TlsRecordType
impl Copy for TlsRecordType
impl Eq for TlsRecordType
impl StructuralPartialEq for TlsRecordType
Auto Trait Implementations§
impl Freeze for TlsRecordType
impl RefUnwindSafe for TlsRecordType
impl Send for TlsRecordType
impl Sync for TlsRecordType
impl Unpin for TlsRecordType
impl UnwindSafe for TlsRecordType
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