Home
last modified time | relevance | path

Searched refs:write (Results 1 – 25 of 215) sorted by relevance

123456789

/webrtc/dtls/src/alert/
H A Dmod.rs21 AlertLevel::Warning => write!(f, "LevelWarning"), in fmt()
22 AlertLevel::Fatal => write!(f, "LevelFatal"), in fmt()
23 _ => write!(f, "Invalid alert level"), in fmt()
71 AlertDescription::CloseNotify => write!(f, "CloseNotify"), in fmt()
73 AlertDescription::BadRecordMac => write!(f, "BadRecordMac"), in fmt()
85 AlertDescription::UnknownCa => write!(f, "UnknownCA"), in fmt()
86 AlertDescription::AccessDenied => write!(f, "AccessDenied"), in fmt()
87 AlertDescription::DecodeError => write!(f, "DecodeError"), in fmt()
88 AlertDescription::DecryptError => write!(f, "DecryptError"), in fmt()
93 AlertDescription::UserCanceled => write!(f, "UserCanceled"), in fmt()
[all …]
/webrtc/util/src/buffer/
H A Dbuffer_test.rs14 let n = assert_ok!(buffer.write(&[0, 1]).await); in test_buffer()
44 let n = assert_ok!(buffer.write(&[3]).await); in test_buffer()
51 let result = buffer.write(&[4]).await; in test_buffer()
81 assert_ok!(buffer.write(&p1).await); in test_wraparound()
82 assert_ok!(buffer.write(&p2).await); in test_wraparound()
83 assert_ok!(buffer.write(&p3).await); in test_wraparound()
99 assert_ok!(buffer.write(&p4).await); in test_wraparound()
179 let result = buffer.write(&[4, 5]).await; in test_buffer_limit_count()
199 let result = buffer.write(&[8, 9]).await; in test_buffer_limit_count()
237 let result = buffer.write(&[4, 5]).await; in test_buffer_limit_size()
[all …]
/webrtc/dtls/src/signature_hash_algorithm/
H A Dmod.rs44 HashAlgorithm::Md2 => write!(f, "md2"), in fmt()
45 HashAlgorithm::Md5 => write!(f, "md5"), // [RFC3279] in fmt()
46 HashAlgorithm::Sha1 => write!(f, "sha-1"), // [RFC3279] in fmt()
47 HashAlgorithm::Sha224 => write!(f, "sha-224"), // [RFC4055] in fmt()
48 HashAlgorithm::Sha256 => write!(f, "sha-256"), // [RFC4055] in fmt()
49 HashAlgorithm::Sha384 => write!(f, "sha-384"), // [RFC4055] in fmt()
50 HashAlgorithm::Sha512 => write!(f, "sha-512"), // [RFC4055] in fmt()
51 HashAlgorithm::Ed25519 => write!(f, "null"), // [RFC4055] in fmt()
52 _ => write!(f, "unknown or unsupported hash algorithm"), in fmt()
/webrtc/sdp/src/description/
H A Dcommon.rs19 write!(f, "{} {} {}", self.network_type, self.address_type, address,) in fmt()
21 write!(f, "{} {}", self.network_type, self.address_type,) in fmt()
43 write!(f, "{}", parts.join("/")) in fmt()
59 write!(f, "{}{}:{}", output, self.bandwidth_type, self.bandwidth) in fmt()
77 write!(f, "{}:{}", self.key, value) in fmt()
79 write!(f, "{}", self.key) in fmt()
/webrtc/webrtc/src/ice_transport/
H A Dice_gatherer_state.rs57 RTCIceGathererState::New => write!(f, "{ICE_GATHERED_STATE_NEW_STR}"), in fmt()
58 RTCIceGathererState::Gathering => write!(f, "{ICE_GATHERED_STATE_GATHERING_STR}"), in fmt()
60 write!(f, "{ICE_GATHERED_STATE_COMPLETE_STR}") in fmt()
63 write!(f, "{ICE_GATHERED_STATE_CLOSED_STR}") in fmt()
65 _ => write!(f, "{}", crate::UNSPECIFIED_STR), in fmt()
H A Dice_transport_state.rs88 RTCIceTransportState::New => write!(f, "{ICE_TRANSPORT_STATE_NEW_STR}"), in fmt()
89 RTCIceTransportState::Checking => write!(f, "{ICE_TRANSPORT_STATE_CHECKING_STR}"), in fmt()
91 write!(f, "{ICE_TRANSPORT_STATE_CONNECTED_STR}") in fmt()
93 RTCIceTransportState::Completed => write!(f, "{ICE_TRANSPORT_STATE_COMPLETED_STR}"), in fmt()
95 write!(f, "{ICE_TRANSPORT_STATE_FAILED_STR}") in fmt()
98 write!(f, "{ICE_TRANSPORT_STATE_DISCONNECTED_STR}") in fmt()
101 write!(f, "{ICE_TRANSPORT_STATE_CLOSED_STR}") in fmt()
103 _ => write!(f, "{}", crate::UNSPECIFIED_STR), in fmt()
H A Dice_candidate_type.rs75 RTCIceCandidateType::Host => write!(f, "{ICE_CANDIDATE_TYPE_HOST_STR}"), in fmt()
76 RTCIceCandidateType::Srflx => write!(f, "{ICE_CANDIDATE_TYPE_SRFLX_STR}"), in fmt()
77 RTCIceCandidateType::Prflx => write!(f, "{ICE_CANDIDATE_TYPE_PRFLX_STR}"), in fmt()
78 RTCIceCandidateType::Relay => write!(f, "{ICE_CANDIDATE_TYPE_RELAY_STR}"), in fmt()
79 _ => write!(f, "{}", crate::UNSPECIFIED_STR), in fmt()
H A Dice_gathering_state.rs42 RTCIceGatheringState::New => write!(f, "{ICE_GATHERING_STATE_NEW_STR}"), in fmt()
43 RTCIceGatheringState::Gathering => write!(f, "{ICE_GATHERING_STATE_GATHERING_STR}"), in fmt()
45 write!(f, "{ICE_GATHERING_STATE_COMPLETE_STR}") in fmt()
47 _ => write!(f, "{}", crate::UNSPECIFIED_STR), in fmt()
H A Dice_role.rs37 RTCIceRole::Controlling => write!(f, "{ICE_ROLE_CONTROLLING_STR}"), in fmt()
38 RTCIceRole::Controlled => write!(f, "{ICE_ROLE_CONTROLLED_STR}"), in fmt()
39 _ => write!(f, "{}", crate::UNSPECIFIED_STR), in fmt()
H A Dice_credential_type.rs36 RTCIceCredentialType::Password => write!(f, "{ICE_CREDENTIAL_TYPE_PASSWORD_STR}"), in fmt()
37 RTCIceCredentialType::Oauth => write!(f, "{ICE_CREDENTIAL_TYPE_OAUTH_STR}"), in fmt()
38 _ => write!(f, "{}", crate::UNSPECIFIED_STR), in fmt()
H A Dice_protocol.rs39 RTCIceProtocol::Udp => write!(f, "{ICE_PROTOCOL_UDP_STR}"), in fmt()
40 RTCIceProtocol::Tcp => write!(f, "{ICE_PROTOCOL_TCP_STR}"), in fmt()
41 _ => write!(f, "{}", crate::UNSPECIFIED_STR), in fmt()
/webrtc/dtls/src/cipher_suite/
H A Dmod.rs53 write!(f, "TLS_ECDHE_ECDSA_WITH_AES_128_CCM") in fmt()
56 write!(f, "TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8") in fmt()
59 write!(f, "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256") in fmt()
62 write!(f, "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256") in fmt()
65 write!(f, "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA") in fmt()
68 write!(f, "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA") in fmt()
70 CipherSuiteId::Tls_Psk_With_Aes_128_Ccm => write!(f, "TLS_PSK_WITH_AES_128_CCM"), in fmt()
71 CipherSuiteId::Tls_Psk_With_Aes_128_Ccm_8 => write!(f, "TLS_PSK_WITH_AES_128_CCM_8"), in fmt()
73 write!(f, "TLS_PSK_WITH_AES_128_GCM_SHA256") in fmt()
75 _ => write!(f, "Unsupported CipherSuiteID"), in fmt()
/webrtc/webrtc/src/peer_connection/sdp/
H A Dsdp_type.rs58 RTCSdpType::Offer => write!(f, "{SDP_TYPE_OFFER_STR}"), in fmt()
59 RTCSdpType::Pranswer => write!(f, "{SDP_TYPE_PRANSWER_STR}"), in fmt()
60 RTCSdpType::Answer => write!(f, "{SDP_TYPE_ANSWER_STR}"), in fmt()
61 RTCSdpType::Rollback => write!(f, "{SDP_TYPE_ROLLBACK_STR}"), in fmt()
62 _ => write!(f, "{}", crate::UNSPECIFIED_STR), in fmt()
/webrtc/dtls/src/handshake/
H A Dmod.rs57 HandshakeType::HelloRequest => write!(f, "HelloRequest"), in fmt()
58 HandshakeType::ClientHello => write!(f, "ClientHello"), in fmt()
59 HandshakeType::ServerHello => write!(f, "ServerHello"), in fmt()
60 HandshakeType::HelloVerifyRequest => write!(f, "HelloVerifyRequest"), in fmt()
61 HandshakeType::Certificate => write!(f, "Certificate"), in fmt()
62 HandshakeType::ServerKeyExchange => write!(f, "ServerKeyExchange"), in fmt()
64 HandshakeType::ServerHelloDone => write!(f, "ServerHelloDone"), in fmt()
65 HandshakeType::CertificateVerify => write!(f, "CertificateVerify"), in fmt()
66 HandshakeType::ClientKeyExchange => write!(f, "ClientKeyExchange"), in fmt()
67 HandshakeType::Finished => write!(f, "Finished"), in fmt()
[all …]
/webrtc/sctp/src/queue/
H A Dpending_queue.rs77 let mut unordered_queue = self.unordered_queue.write(); in push()
80 let mut ordered_queue = self.ordered_queue.write(); in push()
127 let mut unordered_queue = self.unordered_queue.write(); in append_large()
130 let mut ordered_queue = self.ordered_queue.write(); in append_large()
146 let mut unordered_queue = self.unordered_queue.write(); in append_unlimited()
153 let mut ordered_queue = self.ordered_queue.write(); in append_unlimited()
197 let mut unordered_queue = self.unordered_queue.write(); in pop()
200 let mut ordered_queue = self.ordered_queue.write(); in pop()
215 let mut unordered_queue = self.unordered_queue.write(); in pop()
227 let mut ordered_queue = self.ordered_queue.write(); in pop()
/webrtc/webrtc/src/peer_connection/policy/
H A Dbundle_policy.rs54 RTCBundlePolicy::Balanced => write!(f, "{BUNDLE_POLICY_BALANCED_STR}"), in fmt()
55 RTCBundlePolicy::MaxCompat => write!(f, "{BUNDLE_POLICY_MAX_COMPAT_STR}"), in fmt()
56 RTCBundlePolicy::MaxBundle => write!(f, "{BUNDLE_POLICY_MAX_BUNDLE_STR}"), in fmt()
57 _ => write!(f, "{}", crate::UNSPECIFIED_STR), in fmt()
/webrtc/webrtc/src/peer_connection/
H A Dsignaling_state.rs16 StateChangeOp::SetLocal => write!(f, "SetLocal"), in fmt()
17 StateChangeOp::SetRemote => write!(f, "SetRemote"), in fmt()
80 RTCSignalingState::Stable => write!(f, "{SIGNALING_STATE_STABLE_STR}"), in fmt()
82 write!(f, "{SIGNALING_STATE_HAVE_LOCAL_OFFER_STR}") in fmt()
85 write!(f, "{SIGNALING_STATE_HAVE_REMOTE_OFFER_STR}") in fmt()
88 write!(f, "{SIGNALING_STATE_HAVE_LOCAL_PRANSWER_STR}") in fmt()
91 write!(f, "{SIGNALING_STATE_HAVE_REMOTE_PRANSWER_STR}") in fmt()
93 RTCSignalingState::Closed => write!(f, "{SIGNALING_STATE_CLOSED_STR}"), in fmt()
94 _ => write!(f, "{}", crate::UNSPECIFIED_STR), in fmt()
/webrtc/webrtc/src/dtls_transport/
H A Ddtls_role.rs45 DTLSRole::Auto => write!(f, "auto"), in fmt()
46 DTLSRole::Client => write!(f, "client"), in fmt()
47 DTLSRole::Server => write!(f, "server"), in fmt()
48 _ => write!(f, "{}", crate::UNSPECIFIED_STR), in fmt()
/webrtc/webrtc/src/rtp_transceiver/
H A Drtp_transceiver_direction.rs58 write!(f, "{RTP_TRANSCEIVER_DIRECTION_SENDRECV_STR}") in fmt()
61 write!(f, "{RTP_TRANSCEIVER_DIRECTION_SENDONLY_STR}") in fmt()
64 write!(f, "{RTP_TRANSCEIVER_DIRECTION_RECVONLY_STR}") in fmt()
67 write!(f, "{RTP_TRANSCEIVER_DIRECTION_INACTIVE_STR}") in fmt()
69 _ => write!(f, "{}", crate::UNSPECIFIED_STR), in fmt()
/webrtc/interceptor/src/twcc/sender/
H A Dsender_stream.rs27 async fn write(&self, pkt: &rtp::packet::Packet, a: &Attributes) -> Result<usize> { in write() method
38 self.next_rtp_writer.write(&pkt, a).await in write()
/webrtc/ice/src/candidate/
H A Dmod.rs114 write!(f, "{s}") in fmt()
167 write!(f, " related {}:{}", self.address, self.port) in fmt()
223 write!(f, "{s}") in fmt()
252 write!( in fmt()
266 write!( in fmt()
320 pub async fn write(&self, b: &[u8]) -> Result<usize> { in write() method
/webrtc/turn/src/proto/
H A Devenport.rs27 write!(f, "reserve: true") in fmt()
29 write!(f, "reserve: false") in fmt()
/webrtc/util/src/vnet/
H A Dchunk_queue.rs24 let mut chunks = self.chunks.write().await; in push()
35 let mut chunks = self.chunks.write().await; in pop()
/webrtc/ice/src/control/
H A Dcontrol_test.rs18 m1.write(&m.raw)?; in test_controlled_get_from()
55 m1.write(&m.raw)?; in test_controlling_get_from()
108 m1.write(&m.raw)?; in test_control_get_from()
146 m1.write(&m.raw)?; in test_control_get_from()
/webrtc/rtcp/src/extended_report/
H A Drle.rs47 write!(f, "[RunLength type={}, length={}]", run_type, self.value()) in fmt()
49 ChunkType::BitVector => write!(f, "[BitVector {:#b}", self.value()), in fmt()
50 ChunkType::TerminatingNull => write!(f, "[TerminatingNull]"), in fmt()
144 write!(f, "{self:?}") in fmt()

123456789