pub enum EncodedItem {
Size(u64),
Parent(Parent),
Leaf(Leaf),
Error(EncodeError),
Done,
}
Expand description
A content item for the bao streaming protocol.
Variants§
Size(u64)
total data size, will be the first item
Parent(Parent)
a parent node
Leaf(Leaf)
a leaf node
Error(EncodeError)
an error, will be the last item
Done
done, will be the last item
Trait Implementations§
Source§impl Debug for EncodedItem
impl Debug for EncodedItem
Source§impl<'de> Deserialize<'de> for EncodedItem
impl<'de> Deserialize<'de> for EncodedItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<EncodeError> for EncodedItem
impl From<EncodeError> for EncodedItem
Source§fn from(e: EncodeError) -> Self
fn from(e: EncodeError) -> Self
Converts to this type from the input type.
Source§impl From<Leaf> for EncodedItem
impl From<Leaf> for EncodedItem
Source§impl From<Parent> for EncodedItem
impl From<Parent> for EncodedItem
Auto Trait Implementations§
impl !Freeze for EncodedItem
impl !RefUnwindSafe for EncodedItem
impl Send for EncodedItem
impl Sync for EncodedItem
impl Unpin for EncodedItem
impl !UnwindSafe for EncodedItem
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