pub struct Producer { /* private fields */ }Expand description
Produces bandwidth estimates, notifying consumers when the value changes.
Implementations§
Source§impl Producer
impl Producer
Sourcepub fn set(&self, bitrate: Option<u64>) -> Result<()>
pub fn set(&self, bitrate: Option<u64>) -> Result<()>
Set the current bandwidth estimate in bits per second.
Sourcepub fn abort(&self, err: Error) -> Result<()>
pub fn abort(&self, err: Error) -> Result<()>
Close the producer with an error, notifying all consumers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Producer
impl RefUnwindSafe for Producer
impl Send for Producer
impl Sync for Producer
impl Unpin for Producer
impl UnsafeUnpin for Producer
impl UnwindSafe for Producer
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