pub struct ContentAddressableArchive<T> {
pub content: BoundedReader<T>,
pub dag: Graph<Block<T>, Link>,
pub car_overhead_byte_counter: u64,
/* private fields */
}Fields§
§content: BoundedReader<T>Inner reader.
dag: Graph<Block<T>, Link>Blocks DAG
car_overhead_byte_counter: u64On loads, it register bytes used by CAR
Implementations§
Source§impl<T> ContentAddressableArchive<T>
impl<T> ContentAddressableArchive<T>
pub fn new_without_root(config: Config) -> Self
pub fn path_to_cid(&self, path: &Path) -> Option<&Cid>
pub fn block_count(&self) -> usize
Source§impl<T: Read + Seek> ContentAddressableArchive<T>
impl<T: Read + Seek> ContentAddressableArchive<T>
Source§impl<T> ContentAddressableArchive<T>
impl<T> ContentAddressableArchive<T>
Source§impl<T: Read + Seek> ContentAddressableArchive<T>
impl<T: Read + Seek> ContentAddressableArchive<T>
Source§impl<F: Read + Seek> ContentAddressableArchive<F>
impl<F: Read + Seek> ContentAddressableArchive<F>
Trait Implementations§
Source§impl<T> ContextLen for ContentAddressableArchive<T>
impl<T> ContextLen for ContentAddressableArchive<T>
Auto Trait Implementations§
impl<T> !Freeze for ContentAddressableArchive<T>
impl<T> RefUnwindSafe for ContentAddressableArchive<T>
impl<T> Send for ContentAddressableArchive<T>where
T: Send,
impl<T> Sync for ContentAddressableArchive<T>where
T: Send,
impl<T> Unpin for ContentAddressableArchive<T>
impl<T> UnsafeUnpin for ContentAddressableArchive<T>
impl<T> UnwindSafe for ContentAddressableArchive<T>
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