pub struct Consumer { /* private fields */ }Expand description
A lazy handle to a track’s metadata, from broadcast::Consumer::meta.
Like track::Consumer, holding it requests nothing: only a Self::subscribe made from
it is demand.
Implementations§
Source§impl Consumer
impl Consumer
Sourcepub fn broadcast(&self) -> &Info
pub fn broadcast(&self) -> &Info
The broadcast this track belongs to, as reached through the handle it came from.
Sourcepub fn subscribe(
&self,
subscription: impl Into<Option<Subscription>>,
) -> Pending<Subscribing> ⓘ
pub fn subscribe( &self, subscription: impl Into<Option<Subscription>>, ) -> Pending<Subscribing> ⓘ
Open a live metadata subscription, delivering the groups subscription covers as
track::Consumer::subscribe does, each frame as its header alone.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Consumer
impl RefUnwindSafe for Consumer
impl Send for Consumer
impl Sync for Consumer
impl Unpin for Consumer
impl UnsafeUnpin for Consumer
impl UnwindSafe for Consumer
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