Struct iroh_blobs::get::fsm::AtStartChild
source · pub struct AtStartChild { /* private fields */ }
Expand description
State of the get response when we start reading a child
Implementations§
source§impl AtStartChild
impl AtStartChild
sourcepub fn child_offset(&self) -> u64
pub fn child_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 next(self, hash: Hash) -> AtBlobHeader
pub fn next(self, hash: Hash) -> AtBlobHeader
Go into the next state, reading the header
This requires passing in the hash of the child for validation
Trait Implementations§
source§impl Debug for AtStartChild
impl Debug for AtStartChild
source§impl From<AtStartChild> for ConnectedNext
impl From<AtStartChild> for ConnectedNext
source§fn from(value: AtStartChild) -> Self
fn from(value: AtStartChild) -> Self
Converts to this type from the input type.
source§impl From<AtStartChild> for EndBlobNext
impl From<AtStartChild> for EndBlobNext
source§fn from(value: AtStartChild) -> Self
fn from(value: AtStartChild) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AtStartChild
impl RefUnwindSafe for AtStartChild
impl Send for AtStartChild
impl Sync for AtStartChild
impl Unpin for AtStartChild
impl UnwindSafe for AtStartChild
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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