pub struct Select<S: Stream> { /* private fields */ }Expand description
A Stream that keeps only the renditions a select::Broadcast selects.
The selection is fixed at construction; every snapshot from the inner stream is
narrowed by it. Build one with Stream::select or
Select::new.
Implementations§
Trait Implementations§
Source§impl<S: Stream> Stream for Select<S>
impl<S: Stream> Stream for Select<S>
Source§type Ext = <S as Stream>::Ext
type Ext = <S as Stream>::Ext
The application extension carried by the yielded catalog (
() for media-only).Source§fn poll_next(
&mut self,
waiter: &Waiter,
) -> Poll<Result<Option<Timed<Catalog<S::Ext>>>>>
fn poll_next( &mut self, waiter: &Waiter, ) -> Poll<Result<Option<Timed<Catalog<S::Ext>>>>>
Poll for the next catalog snapshot and the timestamp it takes effect at on the broadcast’s
media timeline, or
None once the stream ends. A scale-less catalog track has no timeline:
there the timestamp is the group key (see moq_json::Timed), so apply it on arrival.Auto Trait Implementations§
impl<S> Freeze for Select<S>where
S: Freeze,
impl<S> RefUnwindSafe for Select<S>where
S: RefUnwindSafe,
impl<S> Send for Select<S>
impl<S> Sync for Select<S>where
S: Sync,
impl<S> Unpin for Select<S>where
S: Unpin,
impl<S> UnsafeUnpin for Select<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Select<S>where
S: UnwindSafe,
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