pub struct Demand { /* private fields */ }Expand description
A cloneable, watch-only handle to a track’s subscriber demand.
Obtained from Producer::demand. A publisher uses it to react to
whether anyone is subscribed (on-demand capture / encoding) without being able
to publish frames or close the track. It’s a weak handle, so it neither keeps
the track alive nor pins its cached groups; once the owning Producer
goes away, used / unused report the track’s
closure.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Demand
impl RefUnwindSafe for Demand
impl Send for Demand
impl Sync for Demand
impl Unpin for Demand
impl UnsafeUnpin for Demand
impl UnwindSafe for Demand
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