pub struct Bandwidth {
pub experimental: bool,
pub bandwidth_type: String,
pub bandwidth: u64,
}Expand description
Bandwidth describes an optional field which denotes the proposed bandwidth to be used by the session or media.
Fields§
§experimental: boolWhether the bandwidth type is experimental, written with an X- prefix.
bandwidth_type: StringThe bandwidth modifier, such as AS (application-specific) or CT (conference total).
bandwidth: u64The proposed bandwidth, in the unit of the modifier: kilobits per second for CT and
AS, bits per second for TIAS, RS and RR. See Bandwidth::bits_per_second.
Implementations§
Source§impl Bandwidth
impl Bandwidth
Sourcepub fn parse(value: &str) -> Result<Self>
pub fn parse(value: &str) -> Result<Self>
Parses the value of a b= line: bwtype ":" bandwidth, a token and digits.
Sourcepub fn kind(&self) -> BandwidthKind
pub fn kind(&self) -> BandwidthKind
Which modifier this line carries.
Sourcepub fn bits_per_second(&self) -> Option<u64>
pub fn bits_per_second(&self) -> Option<u64>
The value in bits per second: CT and AS are in kilobits per second, TIAS, RS
and RR in bits per second. None for a modifier whose unit is not known.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Bandwidth
impl Freeze for Bandwidth
impl Move for Bandwidth
impl RefUnwindSafe for Bandwidth
impl Send for Bandwidth
impl Sync for Bandwidth
impl Unpin for Bandwidth
impl UnsafeUnpin for Bandwidth
impl UnwindSafe for Bandwidth
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