pub struct DirectoryBlock {
pub block: Block,
pub links: Vec<PbLink>,
}Fields§
§block: Block§links: Vec<PbLink>Implementations§
Source§impl DirectoryBlock
impl DirectoryBlock
pub fn new(links: Vec<PbLink>) -> DirectoryBlock
Trait Implementations§
Source§impl Package for DirectoryBlock
impl Package for DirectoryBlock
type BlockIterator = Once<Block<Multicodec, Multihash>>
fn cid(&self) -> &Cid
fn total_size(&self) -> u64
fn into_blocks(self) -> Self::BlockIterator
fn link(&self, name: String) -> PbLink
Auto Trait Implementations§
impl Freeze for DirectoryBlock
impl RefUnwindSafe for DirectoryBlock
impl Send for DirectoryBlock
impl Sync for DirectoryBlock
impl Unpin for DirectoryBlock
impl UnwindSafe for DirectoryBlock
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