pub enum TransportTuple {
WithRemote {
local_address: String,
local_port: u16,
remote_ip: IpAddr,
remote_port: u16,
protocol: Protocol,
},
LocalOnly {
local_address: String,
local_port: u16,
protocol: Protocol,
},
}
Expand description
Tuple of local IP/port/protocol + optional remote IP/port.
§Notes on usage
Both remote_ip
and remote_port
are unset until the media address of the remote endpoint is
known, which happens after calling transport.connect()
in PlainTransport
and
PipeTransport
, or via dynamic detection as it happens in WebRtcTransport
(in which the
remote media address is detected by ICE means), or in PlainTransport
(when using comedia
mode).
Variants§
WithRemote
Transport tuple with remote endpoint info.
Fields
LocalOnly
Transport tuple without remote endpoint info.
Implementations§
Trait Implementations§
Source§impl Clone for TransportTuple
impl Clone for TransportTuple
Source§fn clone(&self) -> TransportTuple
fn clone(&self) -> TransportTuple
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TransportTuple
impl Debug for TransportTuple
Source§impl<'de> Deserialize<'de> for TransportTuple
impl<'de> Deserialize<'de> for TransportTuple
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TransportTuple
impl Hash for TransportTuple
Source§impl Ord for TransportTuple
impl Ord for TransportTuple
Source§fn cmp(&self, other: &TransportTuple) -> Ordering
fn cmp(&self, other: &TransportTuple) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TransportTuple
impl PartialEq for TransportTuple
Source§impl PartialOrd for TransportTuple
impl PartialOrd for TransportTuple
Source§impl Serialize for TransportTuple
impl Serialize for TransportTuple
impl Eq for TransportTuple
impl StructuralPartialEq for TransportTuple
Auto Trait Implementations§
impl Freeze for TransportTuple
impl RefUnwindSafe for TransportTuple
impl Send for TransportTuple
impl Sync for TransportTuple
impl Unpin for TransportTuple
impl UnwindSafe for TransportTuple
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more