pub struct Bandwidth { /* private fields */ }Expand description
Bandwidth field.
Implementations§
Source§impl Bandwidth
impl Bandwidth
Sourcepub fn new(bandwidth_type: BandwidthType, bandwidth: u32) -> Self
pub fn new(bandwidth_type: BandwidthType, bandwidth: u32) -> Self
Create a new bandwidth field with a given type and bandwidth.
Sourcepub fn bandwidth_type(&self) -> &BandwidthType
pub fn bandwidth_type(&self) -> &BandwidthType
Get the type of the bandwidth.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bandwidth
impl RefUnwindSafe for Bandwidth
impl Send for Bandwidth
impl Sync for Bandwidth
impl Unpin 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