We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
candidate
1 parent b808b74 commit 939dfe5Copy full SHA for 939dfe5
rtc-sdp/src/description/common.rs
@@ -1,5 +1,7 @@
1
use std::fmt;
2
3
+use super::session::ATTR_KEY_CANDIDATE;
4
+
5
/// Information describes the "i=" field which provides textual information
6
/// about the session.
7
pub type Information = String;
@@ -89,6 +91,6 @@ impl Attribute {
89
91
90
92
/// is_ice_candidate returns true if the attribute key equals "candidate".
93
pub fn is_ice_candidate(&self) -> bool {
- self.key.as_str() == "candidate"
94
+ self.key.as_str() == ATTR_KEY_CANDIDATE
95
}
96
0 commit comments