pub struct Bandwidth {
pub bwtype: String,
pub bandwidth: u64,
}Expand description
Bandwidth information for the session or media.
See RFC 8866 Section 5.8 for more details.
Fields§
§bwtype: StringBandwidth type, usually “CT” or “AS”.
bandwidth: u64Bandwidth.
Implementations§
Source§impl Bandwidth
impl Bandwidth
pub fn new(bwtype: BandwidthType, bandwidth: u64) -> Self
Sourcepub fn try_parse_bwtype(&self) -> Result<BandwidthType, ParseEnumError>
pub fn try_parse_bwtype(&self) -> Result<BandwidthType, ParseEnumError>
Tries to parse the bwtype String of self as BandwidthType
Sourcepub fn set_bwtype(&mut self, bwtype: BandwidthType)
pub fn set_bwtype(&mut self, bwtype: BandwidthType)
Sets the bwtype String of self from the specified BandwidthType
Trait Implementations§
impl Eq for Bandwidth
impl StructuralPartialEq for Bandwidth
Auto Trait Implementations§
impl Freeze 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