pub enum DataContent {
Inline(Vec<u8>),
Paged {
page_size: u32,
pages: Vec<PageSlot>,
},
}Variants§
Inline(Vec<u8>)
Bytes in a single slab. bytes.len() must be a multiple of
PAGE_SIZE (zero-padded by the constructor).
Paged
Page-merkleized form. Each page is owned (via refcounted PageRef) so DataCap clones can share unmodified pages.
Trait Implementations§
Source§impl Clone for DataContent
impl Clone for DataContent
Source§impl Debug for DataContent
impl Debug for DataContent
Source§impl HashTreeRoot for DataContent
impl HashTreeRoot for DataContent
Auto Trait Implementations§
impl Freeze for DataContent
impl RefUnwindSafe for DataContent
impl Send for DataContent
impl Sync for DataContent
impl Unpin for DataContent
impl UnsafeUnpin for DataContent
impl UnwindSafe for DataContent
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.