pub struct AbrController { /* private fields */ }Implementations§
Source§impl AbrController
impl AbrController
pub fn new(profile: &'static Profile) -> Self
Sourcepub fn with_ceiling(profile: &'static Profile, publisher_max_kbps: u32) -> Self
pub fn with_ceiling(profile: &'static Profile, publisher_max_kbps: u32) -> Self
A controller whose range tops out at publisher_max_kbps when that is
below the profile’s ceiling (0 = no limit of the publisher’s own).
A publisher that cannot encode faster than some rate makes every request above it a no-op: the controller would “raise” a bitrate that never moves, and its floor — a fraction of the ceiling — would sit higher than it should. Stating the publisher’s limit keeps the whole range real.
pub fn profile(&self) -> &'static Profile
Trait Implementations§
Source§impl Clone for AbrController
impl Clone for AbrController
Source§fn clone(&self) -> AbrController
fn clone(&self) -> AbrController
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AbrController
impl RefUnwindSafe for AbrController
impl Send for AbrController
impl Sync for AbrController
impl Unpin for AbrController
impl UnsafeUnpin for AbrController
impl UnwindSafe for AbrController
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