pub enum TcpType {
Active,
Passive,
So,
}Expand description
TCP connection role as defined by the tcptype SDP attribute.
This enum corresponds to the TCP connection setup modes defined in RFC 6544 §4.5, which specifies how endpoints establish TCP connections when TCP is used as a transport for media streams.
Variants§
Active
The endpoint actively initiates the TCP connection.
In this mode, the endpoint performs an active open (i.e., sends a SYN) to the remote peer.
Passive
The endpoint passively waits for an incoming TCP connection.
In this mode, the endpoint performs a passive open (i.e., listens) and accepts a connection initiated by the remote peer.
So
Simultaneous open.
Both endpoints attempt to actively open a TCP connection to each other at the same time. This relies on TCP simultaneous open behavior.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TcpType
impl<'de> Deserialize<'de> for TcpType
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
impl Copy for TcpType
impl Eq for TcpType
impl StructuralPartialEq for TcpType
Auto Trait Implementations§
impl Freeze for TcpType
impl RefUnwindSafe for TcpType
impl Send for TcpType
impl Sync for TcpType
impl Unpin for TcpType
impl UnsafeUnpin for TcpType
impl UnwindSafe for TcpType
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