pub struct ContentType(pub u8);Expand description
A ContentType.
Defined in [IETF RFC 9846, B.1].
Tuple Fields§
§0: u8Implementations§
Source§impl ContentType
impl ContentType
Sourcepub const INVALID: ContentType
pub const INVALID: ContentType
Sourcepub const CHANGE_CIPHER_SPEC: ContentType
pub const CHANGE_CIPHER_SPEC: ContentType
Sourcepub const ALERT: ContentType
pub const ALERT: ContentType
Sourcepub const HANDSHAKE: ContentType
pub const HANDSHAKE: ContentType
Sourcepub const APPLICATION_DATA: ContentType
pub const APPLICATION_DATA: ContentType
Trait Implementations§
Source§impl Clone for ContentType
impl Clone for ContentType
Source§fn clone(&self) -> ContentType
fn clone(&self) -> ContentType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContentType
impl Codec for ContentType
impl Copy for ContentType
Source§impl Debug for ContentType
impl Debug for ContentType
impl Eq for ContentType
Source§impl PartialEq for ContentType
impl PartialEq for ContentType
impl StructuralPartialEq for ContentType
Auto Trait Implementations§
impl Freeze for ContentType
impl RefUnwindSafe for ContentType
impl Send for ContentType
impl Sync for ContentType
impl Unpin for ContentType
impl UnsafeUnpin for ContentType
impl UnwindSafe for ContentType
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