#[non_exhaustive]pub enum Transport {
Tcp(TcpTransportOptions),
Udp(UdpTransportOptions),
}
Expand description
The RTP packet transport to request.
Defaults to Transport::Tcp
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Tcp(TcpTransportOptions)
Sends RTP packets over the RTSP TCP connection via interleaved data.
Udp(UdpTransportOptions)
Sends RTP packets over UDP (experimental).
This support is currently only suitable for a LAN for a couple reasons:
- There’s no reorder buffer, so out-of-order packets are all dropped.
- There’s no support for sending RTCP RRs (receiver reports), so servers won’t have the correct information to measure packet loss and pace packets appropriately.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transport
impl RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnwindSafe for Transport
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