[−][src]Struct ipfs_unixfs::file::visit::IdleFileVisit
IdleFileVisit represents a prepared file visit over a tree. The user has to know the CID and be able to get the block for the visit.
Note: For easier to use interface, you should consider using ipfs_unixfs::walk::Walker
.
It uses IdleFileVisit
and FileVisit
internally but has a better API.
Implementations
impl IdleFileVisit
[src]
pub fn with_target_range(self, range: Range<u64>) -> Self
[src]
Target range represents the target byte range of the file we are interested in visiting.
pub fn start(
self,
block: &[u8]
) -> Result<(&[u8], u64, Metadata, Option<FileVisit>), FileReadFailed>
[src]
self,
block: &[u8]
) -> Result<(&[u8], u64, Metadata, Option<FileVisit>), FileReadFailed>
Begins the visitation by processing the first block to be visited.
Returns (on success) a tuple of file bytes, total file size, any metadata associated, and
optionally a FileVisit
to continue the walk.
Trait Implementations
impl Debug for IdleFileVisit
[src]
impl Default for IdleFileVisit
[src]
fn default() -> IdleFileVisit
[src]
Auto Trait Implementations
impl RefUnwindSafe for IdleFileVisit
impl Send for IdleFileVisit
impl Sync for IdleFileVisit
impl Unpin for IdleFileVisit
impl UnwindSafe for IdleFileVisit
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>,