pub enum BlobContentNext<R: RecvStream> {
More((AtBlobContent<R>, Result<BaoContentItem, DecodeError>)),
Done(AtEndBlob<R>),
}
Expand description
The next state after reading a content item
Variants§
More((AtBlobContent<R>, Result<BaoContentItem, DecodeError>))
We expect more content
Done(AtEndBlob<R>)
We are done with this blob
Trait Implementations§
Source§impl<R: Debug + RecvStream> Debug for BlobContentNext<R>
impl<R: Debug + RecvStream> Debug for BlobContentNext<R>
Source§impl<R: RecvStream> From<(AtBlobContent<R>, Result<BaoContentItem, DecodeError>)> for BlobContentNext<R>
impl<R: RecvStream> From<(AtBlobContent<R>, Result<BaoContentItem, DecodeError>)> for BlobContentNext<R>
Source§fn from(value: (AtBlobContent<R>, Result<BaoContentItem, DecodeError>)) -> Self
fn from(value: (AtBlobContent<R>, Result<BaoContentItem, DecodeError>)) -> Self
Converts to this type from the input type.
Source§impl<R: RecvStream> From<AtEndBlob<R>> for BlobContentNext<R>
impl<R: RecvStream> From<AtEndBlob<R>> for BlobContentNext<R>
Auto Trait Implementations§
impl<R> !Freeze for BlobContentNext<R>
impl<R> !RefUnwindSafe for BlobContentNext<R>
impl<R> Send for BlobContentNext<R>
impl<R> Sync for BlobContentNext<R>where
R: Sync,
impl<R> Unpin for BlobContentNext<R>where
R: Unpin,
impl<R> !UnwindSafe for BlobContentNext<R>
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