pub struct MediaEndpoint {
pub address: IpAddr,
pub rtp_port: u16,
pub rtcp_port: u16,
pub codec: Codec,
pub packet_ms: u32,
pub max_frames_per_packet: u32,
pub telephone_event_payload: u8,
}Expand description
RTP/RTCP endpoint and negotiated audio format for one media leg.
Addresses may be IPv4 or IPv6. Ports are host-order values; the message codec performs any wire conversion required by the selected layout.
Fields§
§address: IpAddr§rtp_port: u16§rtcp_port: u16§codec: Codec§packet_ms: u32§max_frames_per_packet: u32§telephone_event_payload: u8Negotiated RTP payload number for telephone events; zero disables it.
Trait Implementations§
Source§impl Clone for MediaEndpoint
impl Clone for MediaEndpoint
Source§fn clone(&self) -> MediaEndpoint
fn clone(&self) -> MediaEndpoint
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 MediaEndpoint
Source§impl Debug for MediaEndpoint
impl Debug for MediaEndpoint
impl Eq for MediaEndpoint
Source§impl PartialEq for MediaEndpoint
impl PartialEq for MediaEndpoint
impl StructuralPartialEq for MediaEndpoint
Auto Trait Implementations§
impl Freeze for MediaEndpoint
impl RefUnwindSafe for MediaEndpoint
impl Send for MediaEndpoint
impl Sync for MediaEndpoint
impl Unpin for MediaEndpoint
impl UnsafeUnpin for MediaEndpoint
impl UnwindSafe for MediaEndpoint
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