pub struct Group { /* private fields */ }Expand description
One group of a metadata subscription, read header by header.
Dereferences to its group::Info for the group’s start.
Implementations§
Source§impl Group
impl Group
Sourcepub fn poll_next_header(
&mut self,
waiter: &Waiter,
) -> Poll<Result<Option<Info>>>
pub fn poll_next_header( &mut self, waiter: &Waiter, ) -> Poll<Result<Option<Info>>>
The next frame’s header: its timestamp and declared plain size, without its payload.
Returns None once the group ends. A real empty frame reads as size 0.
Sourcepub async fn next_header(&mut self) -> Result<Option<Info>>
pub async fn next_header(&mut self) -> Result<Option<Info>>
The next frame’s header: its timestamp and declared plain size, without its payload.
Returns None once the group ends. A real empty frame reads as size 0.
Awaits poll_next_header.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnsafeUnpin for Group
impl UnwindSafe for Group
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