pub enum RtspTransport {
Tcp,
Udp,
}Expand description
Lower transport used for RTP packets negotiated through RTSP.
Variants§
Tcp
RTP-over-TCP, interleaved in the RTSP control connection. This is the default because it crosses NAT and firewalls more reliably.
Udp
RTP-over-UDP. This can reduce latency on a controlled network but requires the RTP/RTCP UDP ports negotiated with the server to work.
Trait Implementations§
Source§impl Clone for RtspTransport
impl Clone for RtspTransport
Source§fn clone(&self) -> RtspTransport
fn clone(&self) -> RtspTransport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RtspTransport
Source§impl Debug for RtspTransport
impl Debug for RtspTransport
Source§impl Default for RtspTransport
impl Default for RtspTransport
Source§fn default() -> RtspTransport
fn default() -> RtspTransport
Returns the “default value” for a type. Read more
impl Eq for RtspTransport
Source§impl PartialEq for RtspTransport
impl PartialEq for RtspTransport
impl StructuralPartialEq for RtspTransport
Auto Trait Implementations§
impl Freeze for RtspTransport
impl RefUnwindSafe for RtspTransport
impl Send for RtspTransport
impl Sync for RtspTransport
impl Unpin for RtspTransport
impl UnsafeUnpin for RtspTransport
impl UnwindSafe for RtspTransport
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