Struct rust_ipfs::unixfs::IpfsUnixfs
source · pub struct IpfsUnixfs { /* private fields */ }
Implementations§
source§impl IpfsUnixfs
impl IpfsUnixfs
pub fn new(ipfs: Ipfs) -> Self
sourcepub fn cat(&self, starting_point: impl Into<StartingPoint>) -> UnixfsCat
pub fn cat(&self, starting_point: impl Into<StartingPoint>) -> UnixfsCat
Creates a stream which will yield the bytes of an UnixFS file from the root Cid, with the optional file byte range. If the range is specified and is outside of the file, the stream will end without producing any bytes.
sourcepub fn add<I: Into<AddOpt>>(&self, item: I) -> UnixfsAdd
pub fn add<I: Into<AddOpt>>(&self, item: I) -> UnixfsAdd
Add a file from either a file or stream
Auto Trait Implementations§
impl !RefUnwindSafe for IpfsUnixfs
impl Send for IpfsUnixfs
impl Sync for IpfsUnixfs
impl Unpin for IpfsUnixfs
impl !UnwindSafe for IpfsUnixfs
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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