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> UnsafeUnpin for AtStartChild<R>where
R: UnsafeUnpin,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more