jingle_s5b: Strenghten the types used by the payloads.
This commit is contained in:
parent
bb60af1531
commit
76877bf85a
1 changed files with 3 additions and 3 deletions
|
@ -65,10 +65,10 @@ impl Candidate {
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub enum TransportPayload {
|
pub enum TransportPayload {
|
||||||
Activated(String),
|
Activated(CandidateId),
|
||||||
Candidates(Vec<Candidate>),
|
Candidates(Vec<Candidate>),
|
||||||
CandidateError,
|
CandidateError,
|
||||||
CandidateUsed(String),
|
CandidateUsed(CandidateId),
|
||||||
ProxyError,
|
ProxyError,
|
||||||
None,
|
None,
|
||||||
}
|
}
|
||||||
|
@ -230,7 +230,7 @@ mod tests {
|
||||||
sid: StreamId(String::from("coucou")),
|
sid: StreamId(String::from("coucou")),
|
||||||
dstaddr: None,
|
dstaddr: None,
|
||||||
mode: Mode::Tcp,
|
mode: Mode::Tcp,
|
||||||
payload: TransportPayload::Activated(String::from("coucou")),
|
payload: TransportPayload::Activated(CandidateId(String::from("coucou"))),
|
||||||
};
|
};
|
||||||
let elem2: Element = transport.into();
|
let elem2: Element = transport.into();
|
||||||
assert!(elem.compare_to(&elem2));
|
assert!(elem.compare_to(&elem2));
|
||||||
|
|
Loading…
Reference in a new issue