pub struct TrackConsumer {
pub info: Arc<Track>,
/* private fields */
}
Expand description
A consumer for a track, used to read groups.
Fields§
§info: Arc<Track>
Implementations§
Source§impl TrackConsumer
impl TrackConsumer
pub fn get_group(&self, sequence: u64) -> Result<GroupConsumer, Error>
pub async fn next_group(&mut self) -> Result<Option<GroupConsumer>, Error>
pub fn latest_group(&self) -> u64
pub async fn closed(&self) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for TrackConsumer
impl Clone for TrackConsumer
Source§fn clone(&self) -> TrackConsumer
fn clone(&self) -> TrackConsumer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TrackConsumer
impl Debug for TrackConsumer
Auto Trait Implementations§
impl Freeze for TrackConsumer
impl RefUnwindSafe for TrackConsumer
impl Send for TrackConsumer
impl Sync for TrackConsumer
impl Unpin for TrackConsumer
impl UnwindSafe for TrackConsumer
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