pub enum ObjectSource {
Inline(Vec<u8>),
External {
id: Id,
len: u64,
},
}Expand description
Source of one object-table entry.
A descriptor’s object table is a single ordered sequence; each entry is
either inline bytes or a reference to a content-addressed store object, in
object-table order, so the DRA’s object_id continues to index it unchanged.
Variants§
Inline(Vec<u8>)
Bytes carried in an OBJECT (0x10) record.
External
Bytes held by an crate::store::ObjectStore under id; len is the
exact byte length.
Implementations§
Source§impl ObjectSource
impl ObjectSource
Trait Implementations§
Source§impl Clone for ObjectSource
impl Clone for ObjectSource
Source§impl Debug for ObjectSource
impl Debug for ObjectSource
impl Eq for ObjectSource
Source§impl PartialEq for ObjectSource
impl PartialEq for ObjectSource
impl StructuralPartialEq for ObjectSource
Auto Trait Implementations§
impl Freeze for ObjectSource
impl RefUnwindSafe for ObjectSource
impl Send for ObjectSource
impl Sync for ObjectSource
impl Unpin for ObjectSource
impl UnsafeUnpin for ObjectSource
impl UnwindSafe for ObjectSource
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