[−][src]Struct ipfs_unixfs::file::reader::Traversal
Carrier of validation data used between blocks during a walk on the merkle tree.
Implementations
impl Traversal
[src]
pub fn continue_walk<'a>(
self,
next_block: &'a [u8],
tree_range: &Range<u64>
) -> Result<FileReader<'a>, FileReadFailed>
[src]
self,
next_block: &'a [u8],
tree_range: &Range<u64>
) -> Result<FileReader<'a>, FileReadFailed>
Continues the walk on the merkle tree with the given block contents. The block contents is not validated and the range is expected to be the next from previous call to FileContent::Links iterator.
When calling this directly, it is good to note that repeatedly calling this with the same block contents will not be detected, and will instead grow the internal Vec of links until memory runs out.
pub fn file_size(&self) -> u64
[src]
Returns the total size of the file.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Traversal
impl Send for Traversal
impl Sync for Traversal
impl Unpin for Traversal
impl UnwindSafe for Traversal
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,