pub struct Rtcp {
pub port: u16,
pub nettype: NetType,
pub addrtype: AddrType,
pub connection_address: String,
}Expand description
RTCP port number and address
To be used if not algorithmically derived from the RTP port described in the media line
Fields§
§port: u16Port used for the RTCP stream
nettype: NetTypeNetwork Type
addrtype: AddrTypeAddress type
connection_address: StringConnection address: can be IP Address, unicast, multicast, …
Conformity may be checked against the addrtype.
Implementations§
Source§impl Rtcp
impl Rtcp
Sourcepub fn with_ip_addr(port: u16, connection_address: impl Into<IpAddr>) -> Self
pub fn with_ip_addr(port: u16, connection_address: impl Into<IpAddr>) -> Self
Construct an Rtcp with the specified IP connection_address
Sourcepub fn new(
port: u16,
nettype: NetType,
addrtype: AddrType,
connection_address: impl ToString,
) -> Self
pub fn new( port: u16, nettype: NetType, addrtype: AddrType, connection_address: impl ToString, ) -> Self
Construct an Rtcp
See also Rtcp::with_ip_addr
Sourcepub fn try_parse_connection_ip_address(&self) -> Result<IpAddr, &str>
pub fn try_parse_connection_ip_address(&self) -> Result<IpAddr, &str>
Tries to parse the connection_address String of self as IpAddr
Returns the Ok with the parsed IpAddr or Err with the string address
if parsing failed.
Sourcepub fn set_connection_ip_address(
&mut self,
connection_address: impl Into<IpAddr>,
)
pub fn set_connection_ip_address( &mut self, connection_address: impl Into<IpAddr>, )
Sets the connection_address & addrtype of self from the specified IpAddr
Trait Implementations§
impl Eq for Rtcp
impl StructuralPartialEq for Rtcp
Auto Trait Implementations§
impl Freeze for Rtcp
impl RefUnwindSafe for Rtcp
impl Send for Rtcp
impl Sync for Rtcp
impl Unpin for Rtcp
impl UnsafeUnpin for Rtcp
impl UnwindSafe for Rtcp
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