pub struct Subscriber { /* private fields */ }Expand description
A live metadata subscription: track::Subscriber whose groups hold headers alone.
Implementations§
Source§impl Subscriber
impl Subscriber
Sourcepub fn info(&self) -> &Info
pub fn info(&self) -> &Info
The track’s track::Info, resolved when the subscription was established.
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 control(&self) -> Control
pub fn control(&self) -> Control
Create a handle for updating this subscriber’s delivery preferences.
Sourcepub fn poll_recv_group(
&mut self,
waiter: &Waiter,
) -> Poll<Result<Option<Group>>>
pub fn poll_recv_group( &mut self, waiter: &Waiter, ) -> Poll<Result<Option<Group>>>
Receive the next group, as track::Subscriber::poll_recv_group does.
Sourcepub async fn recv_group(&mut self) -> Result<Option<Group>>
pub async fn recv_group(&mut self) -> Result<Option<Group>>
Receive the next group, as track::Subscriber::poll_recv_group does.
Awaits poll_recv_group.
Sourcepub fn poll_finished(&mut self, waiter: &Waiter) -> Poll<Result<Position>>
pub fn poll_finished(&mut self, waiter: &Waiter) -> Poll<Result<Position>>
The track’s declared end, as track::Subscriber::poll_finished reports it.
Sourcepub async fn finished(&mut self) -> Result<Position>
pub async fn finished(&mut self) -> Result<Position>
The track’s declared end, as track::Subscriber::poll_finished reports it.
Awaits poll_finished.
Sourcepub fn update(&mut self, subscription: Subscription) -> Result<()>
pub fn update(&mut self, subscription: Subscription) -> Result<()>
Replace this subscriber’s delivery preferences; see track::Subscriber::update.
Auto Trait Implementations§
impl Freeze for Subscriber
impl RefUnwindSafe for Subscriber
impl Send for Subscriber
impl Sync for Subscriber
impl Unpin for Subscriber
impl UnsafeUnpin for Subscriber
impl UnwindSafe for Subscriber
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