Struct sdp::description::media::RangedPort
source · pub struct RangedPort {
pub value: isize,
pub range: Option<isize>,
}
Expand description
RangedPort supports special format for the media field “m=” port value. If
it may be necessary to specify multiple transport ports, the protocol allows
to write it as: <port>/<number of ports>
where number of ports is a an
offsetting range.
Fields§
§value: isize
§range: Option<isize>
Trait Implementations§
source§impl Clone for RangedPort
impl Clone for RangedPort
source§fn clone(&self) -> RangedPort
fn clone(&self) -> RangedPort
Returns a copy 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 RangedPort
impl Debug for RangedPort
source§impl Default for RangedPort
impl Default for RangedPort
source§fn default() -> RangedPort
fn default() -> RangedPort
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RangedPort
impl RefUnwindSafe for RangedPort
impl Send for RangedPort
impl Sync for RangedPort
impl Unpin for RangedPort
impl UnwindSafe for RangedPort
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