pub struct MoqTrackConsumer { /* private fields */ }Implementations§
Source§impl MoqTrackConsumer
impl MoqTrackConsumer
Sourcepub async fn recv_group(
&self,
) -> Result<Option<Arc<MoqGroupConsumer>>, MoqError>
pub async fn recv_group( &self, ) -> Result<Option<Arc<MoqGroupConsumer>>, MoqError>
Return the next group in arrival order. Returns None when the track ends.
Groups are returned as they arrive on the wire, which may be out of sequence order (e.g. if a later group lands before an earlier one on a separate stream).
Sourcepub async fn next_group(
&self,
) -> Result<Option<Arc<MoqGroupConsumer>>, MoqError>
pub async fn next_group( &self, ) -> Result<Option<Arc<MoqGroupConsumer>>, MoqError>
Return the next group in sequence order, skipping forward if the reader
has fallen behind. Returns None when the track ends.
Sourcepub async fn read_frame(&self) -> Result<Option<Vec<u8>>, MoqError>
pub async fn read_frame(&self) -> Result<Option<Vec<u8>>, MoqError>
Read the first frame of the next group.
Convenience for tracks using one-frame-per-group (like moq-boy’s
status/command tracks). Returns None when the track ends.
pub fn cancel(&self)
Trait Implementations§
Source§impl<UT> LiftRef<UT> for MoqTrackConsumer
impl<UT> LiftRef<UT> for MoqTrackConsumer
type LiftType = Arc<MoqTrackConsumer>
Source§impl<UT> LowerError<UT> for MoqTrackConsumer
impl<UT> LowerError<UT> for MoqTrackConsumer
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for MoqTrackConsumer
impl<UT> LowerReturn<UT> for MoqTrackConsumer
Source§type ReturnType = <Arc<MoqTrackConsumer> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<MoqTrackConsumer> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl<UT> TypeId<UT> for MoqTrackConsumer
impl<UT> TypeId<UT> for MoqTrackConsumer
Auto Trait Implementations§
impl !RefUnwindSafe for MoqTrackConsumer
impl !UnwindSafe for MoqTrackConsumer
impl Freeze for MoqTrackConsumer
impl Send for MoqTrackConsumer
impl Sync for MoqTrackConsumer
impl Unpin for MoqTrackConsumer
impl UnsafeUnpin for MoqTrackConsumer
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