pub struct RtpSessionConfig {
pub local_addr: SocketAddr,
pub remote_addr: Option<SocketAddr>,
pub ssrc: Option<RtpSsrc>,
pub payload_type: u8,
pub clock_rate: u32,
pub jitter_buffer_size: Option<usize>,
pub max_packet_age_ms: Option<u32>,
pub enable_jitter_buffer: bool,
}Expand description
RTP session configuration options
Fields§
§local_addr: SocketAddrLocal address to bind to
remote_addr: Option<SocketAddr>Remote address to send packets to
ssrc: Option<RtpSsrc>SSRC to use for sending packets
payload_type: u8Payload type
clock_rate: u32Clock rate for the payload type (needed for jitter buffer)
jitter_buffer_size: Option<usize>Jitter buffer size in packets
max_packet_age_ms: Option<u32>Maximum packet age in the jitter buffer (ms)
enable_jitter_buffer: boolEnable jitter buffer
Trait Implementations§
Source§impl Clone for RtpSessionConfig
impl Clone for RtpSessionConfig
Source§fn clone(&self) -> RtpSessionConfig
fn clone(&self) -> RtpSessionConfig
Returns a duplicate 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 RtpSessionConfig
impl Debug for RtpSessionConfig
Auto Trait Implementations§
impl Freeze for RtpSessionConfig
impl RefUnwindSafe for RtpSessionConfig
impl Send for RtpSessionConfig
impl Sync for RtpSessionConfig
impl Unpin for RtpSessionConfig
impl UnwindSafe for RtpSessionConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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