Struct iroh_bytes::get::fsm::AtBlobContent
source · pub struct AtBlobContent { /* private fields */ }Expand description
State while we are reading content
Implementations§
source§impl AtBlobContent
impl AtBlobContent
sourcepub async fn next(self) -> BlobContentNext
pub async fn next(self) -> BlobContentNext
Read the next item, either content, an error, or the end of the blob
sourcepub async fn write_all<D: AsyncSliceWriter>(
self,
data: D
) -> Result<AtEndBlob, DecodeError>
pub async fn write_all<D: AsyncSliceWriter>( self, data: D ) -> Result<AtEndBlob, DecodeError>
Write the entire blob to a slice writer
sourcepub async fn write_all_with_outboard<D, O>(
self,
outboard: Option<O>,
data: D
) -> Result<AtEndBlob, DecodeError>where
D: AsyncSliceWriter,
O: AsyncSliceWriter,
pub async fn write_all_with_outboard<D, O>( self, outboard: Option<O>, data: D ) -> Result<AtEndBlob, DecodeError>where D: AsyncSliceWriter, O: AsyncSliceWriter,
Write the entire blob to a slice writer, optionally also writing an outboard.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for AtBlobContent
impl Send for AtBlobContent
impl Sync for AtBlobContent
impl Unpin for AtBlobContent
impl UnwindSafe for AtBlobContent
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