use std::fmt;
use super::candidate::*;
#[derive(Default, Debug, Clone, PartialEq, Eq)]
pub struct RTCIceCandidatePair {
local: RTCIceCandidate,
remote: RTCIceCandidate,
}
impl fmt::Display for RTCIceCandidatePair {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "(local) {} <-> (remote) {}", self.local, self.remote)
}
}
impl RTCIceCandidatePair {
pub fn new(local: RTCIceCandidate, remote: RTCIceCandidate) -> Self {
RTCIceCandidatePair { local, remote }
}
}