pub enum ContentType {
ChangeCipherSpec,
Alert,
Handshake,
ApplicationData,
Heartbeat,
Unknown(u8),
}Expand description
TLS record content type.
Variants§
ChangeCipherSpec
Change cipher spec protocol.
Alert
Alert protocol.
Handshake
Handshake protocol.
ApplicationData
Application data protocol.
Heartbeat
Heartbeat protocol.
Unknown(u8)
Unknown protocol.
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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentType
impl Debug for ContentType
Source§impl<'de> Deserialize<'de> for ContentType
impl<'de> Deserialize<'de> for ContentType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ContentType> for ContentType
impl From<ContentType> for ContentType
Source§fn from(content_type: ContentType) -> Self
fn from(content_type: ContentType) -> Self
Converts to this type from the input type.
Source§impl From<ContentType> for ContentType
impl From<ContentType> for ContentType
Source§impl PartialEq for ContentType
impl PartialEq for ContentType
Source§impl Serialize for ContentType
impl Serialize for ContentType
impl Copy for ContentType
impl Eq 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 UnwindSafe for ContentType
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)