pub struct AtStartChild<R: RecvStream = RecvStream> { /* private fields */ }
Expand description
State of the get response when we start reading a child
Implementations§
Source§impl<R: RecvStream> AtStartChild<R>
impl<R: RecvStream> AtStartChild<R>
Sourcepub fn offset(&self) -> u64
pub fn offset(&self) -> u64
The offset of the child we are currently reading
This must be used to determine the hash needed to call next. If this is larger than the number of children in the collection, you can call finish to stop reading the response.
Sourcepub fn ranges(&self) -> &ChunkRanges
pub fn ranges(&self) -> &ChunkRanges
The ranges we have requested for the child
Sourcepub fn next(self, hash: Hash) -> AtBlobHeader<R>
pub fn next(self, hash: Hash) -> AtBlobHeader<R>
Go into the next state, reading the header
This requires passing in the hash of the child for validation
Trait Implementations§
Source§impl<R: Debug + RecvStream> Debug for AtStartChild<R>
impl<R: Debug + RecvStream> Debug for AtStartChild<R>
Source§impl<R: RecvStream> From<AtStartChild<R>> for ConnectedNext<R>
impl<R: RecvStream> From<AtStartChild<R>> for ConnectedNext<R>
Source§fn from(value: AtStartChild<R>) -> Self
fn from(value: AtStartChild<R>) -> Self
Converts to this type from the input type.
Source§impl<R: RecvStream> From<AtStartChild<R>> for EndBlobNext<R>
impl<R: RecvStream> From<AtStartChild<R>> for EndBlobNext<R>
Source§fn from(value: AtStartChild<R>) -> Self
fn from(value: AtStartChild<R>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<R> Freeze for AtStartChild<R>where
R: Freeze,
impl<R> RefUnwindSafe for AtStartChild<R>where
R: RefUnwindSafe,
impl<R> Send for AtStartChild<R>
impl<R> Sync for AtStartChild<R>where
R: Sync,
impl<R> Unpin for AtStartChild<R>where
R: Unpin,
impl<R> UnwindSafe for AtStartChild<R>where
R: 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