Home
last modified time | relevance | path

Searched refs:ContentType (Results 1 – 16 of 16) sorted by relevance

/webrtc/dtls/src/
H A Dcontent.rs11 pub enum ContentType { enum
20 impl From<u8> for ContentType { implementation
23 20 => ContentType::ChangeCipherSpec, in from()
24 21 => ContentType::Alert, in from()
25 22 => ContentType::Handshake, in from()
26 23 => ContentType::ApplicationData, in from()
27 _ => ContentType::Invalid, in from()
41 pub fn content_type(&self) -> ContentType { in content_type() argument
70 ContentType::ChangeCipherSpec => Ok(Content::ChangeCipherSpec( in unmarshal()
73 ContentType::Alert => Ok(Content::Alert(Alert::unmarshal(reader)?)), in unmarshal()
[all …]
H A Dapplication_data.rs17 pub fn content_type(&self) -> ContentType { in content_type() argument
18 ContentType::ApplicationData in content_type()
H A Dlistener.rs3 use crate::content::ContentType;
38 Box::pin(async move { content_type == ContentType::Handshake }) in listen()
/webrtc/dtls/src/record_layer/
H A Dmod.rs61 ContentType::Alert => Content::Alert(Alert::unmarshal(reader)?), in unmarshal()
62 ContentType::ApplicationData => { in unmarshal()
65 ContentType::ChangeCipherSpec => { in unmarshal()
68 ContentType::Handshake => Content::Handshake(Handshake::unmarshal(reader)?), in unmarshal()
H A Drecord_layer_test.rs84 content_type: ContentType::ChangeCipherSpec, in test_record_layer_round_trip()
H A Drecord_layer_header.rs39 pub content_type: ContentType,
/webrtc/dtls/src/change_cipher_spec/
H A Dmod.rs19 pub fn content_type(&self) -> ContentType { in content_type() argument
20 ContentType::ChangeCipherSpec in content_type()
/webrtc/dtls/src/crypto/
H A Dcrypto_test.rs4 use crate::content::ContentType;
118 content_type: ContentType::ApplicationData, in test_ccm_encryption_and_decryption()
H A Dcrypto_cbc.rs95 if h.content_type == ContentType::ChangeCipherSpec { in decrypt()
H A Dcrypto_gcm.rs89 if h.content_type == ContentType::ChangeCipherSpec { in decrypt()
H A Dcrypto_ccm.rs149 if h.content_type == ContentType::ChangeCipherSpec { in decrypt()
/webrtc/dtls/src/alert/
H A Dmod.rs157 pub fn content_type(&self) -> ContentType { in content_type() argument
158 ContentType::Alert in content_type()
/webrtc/dtls/src/handshake/
H A Dmod.rs182 pub fn content_type(&self) -> ContentType { in content_type() argument
183 ContentType::Handshake in content_type()
/webrtc/dtls/src/prf/
H A Dmod.rs16 use crate::content::ContentType;
296 content_type: ContentType, in prf_mac() argument
/webrtc/dtls/src/fragment_buffer/
H A Dmod.rs52 if record_layer_header.content_type != ContentType::Handshake { in push()
/webrtc/dtls/src/conn/
H A Dconn_test.rs2091 ContentType::Alert, in test_protocol_version_validation()
2233 ContentType::Alert, in test_protocol_version_validation()