pub struct RawBlockFile {
pub block: Block,
}Fields§
§block: BlockImplementations§
Source§impl RawBlockFile
impl RawBlockFile
pub fn new(data: &[u8]) -> RawBlockFile
Trait Implementations§
Source§impl Clone for RawBlockFile
impl Clone for RawBlockFile
Source§fn clone(&self) -> RawBlockFile
fn clone(&self) -> RawBlockFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Package for RawBlockFile
impl Package for RawBlockFile
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 RawBlockFile
impl RefUnwindSafe for RawBlockFile
impl Send for RawBlockFile
impl Sync for RawBlockFile
impl Unpin for RawBlockFile
impl UnwindSafe for RawBlockFile
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