Struct ipfs_api::BackendWithGlobalOptions
pub struct BackendWithGlobalOptions<Back>where
Back: Backend,{ /* private fields */ }
Expand description
A wrapper for [Backend] / IpfsApi that adds global options
Implementations§
§impl<Back> BackendWithGlobalOptions<Back>where
Back: Backend,
impl<Back> BackendWithGlobalOptions<Back>where
Back: Backend,
pub fn into_inner(self) -> Back
pub fn into_inner(self) -> Back
Return the wrapped [Backend]
pub fn new(
backend: Back,
options: GlobalOptions
) -> BackendWithGlobalOptions<Back>
pub fn new(
backend: Back,
options: GlobalOptions
) -> BackendWithGlobalOptions<Back>
Construct
While possible, it is not recommended to wrap a [Backend] twice.
Trait Implementations§
§impl<Back> Backend for BackendWithGlobalOptions<Back>where
Back: Backend,
impl<Back> Backend for BackendWithGlobalOptions<Back>where
Back: Backend,
type HttpRequest = <Back as Backend>::HttpRequest
type HttpResponse = <Back as Backend>::HttpResponse
type Error = <Back as Backend>::Error
§fn with_credentials<U, P>(
self,
username: U,
password: P
) -> BackendWithGlobalOptions<Back>where
U: Into<String>,
P: Into<String>,
fn with_credentials<U, P>(
self,
username: U,
password: P
) -> BackendWithGlobalOptions<Back>where
U: Into<String>,
P: Into<String>,
Set basic authentication credentials to use on every request from this client.
§fn build_base_request<Req>(
&self,
req: Req,
form: Option<Form<'static>>
) -> Result<<BackendWithGlobalOptions<Back> as Backend>::HttpRequest, <BackendWithGlobalOptions<Back> as Backend>::Error>where
Req: ApiRequest,
fn build_base_request<Req>(
&self,
req: Req,
form: Option<Form<'static>>
) -> Result<<BackendWithGlobalOptions<Back> as Backend>::HttpRequest, <BackendWithGlobalOptions<Back> as Backend>::Error>where
Req: ApiRequest,
Builds the url for an api call.
§fn get_header(
res: &<BackendWithGlobalOptions<Back> as Backend>::HttpResponse,
key: HeaderName
) -> Option<&HeaderValue>
fn get_header(
res: &<BackendWithGlobalOptions<Back> as Backend>::HttpResponse,
key: HeaderName
) -> Option<&HeaderValue>
Get the value of a header from an HTTP response.
§fn request_raw<'life0, 'async_trait, Req>(
&'life0 self,
req: Req,
form: Option<Form<'static>>
) -> Pin<Box<dyn Future<Output = Result<(StatusCode, Bytes), <BackendWithGlobalOptions<Back> as Backend>::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Req: ApiRequest + 'async_trait,
BackendWithGlobalOptions<Back>: 'async_trait,
fn request_raw<'life0, 'async_trait, Req>(
&'life0 self,
req: Req,
form: Option<Form<'static>>
) -> Pin<Box<dyn Future<Output = Result<(StatusCode, Bytes), <BackendWithGlobalOptions<Back> as Backend>::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Req: ApiRequest + 'async_trait,
BackendWithGlobalOptions<Back>: 'async_trait,
Generates a request, and returns the unprocessed response future.
fn response_to_byte_stream(
res: <BackendWithGlobalOptions<Back> as Backend>::HttpResponse
) -> Box<dyn Stream<Item = Result<Bytes, <BackendWithGlobalOptions<Back> as Backend>::Error>> + Unpin + 'static, Global>
§fn request_stream<Res, F>(
&self,
req: <BackendWithGlobalOptions<Back> as Backend>::HttpRequest,
process: F
) -> Box<dyn Stream<Item = Result<Res, <BackendWithGlobalOptions<Back> as Backend>::Error>> + Unpin + 'static, Global>where
F: 'static + Send + Fn(<BackendWithGlobalOptions<Back> as Backend>::HttpResponse) -> Box<dyn Stream<Item = Result<Res, <BackendWithGlobalOptions<Back> as Backend>::Error>> + Unpin + 'static, Global>,
fn request_stream<Res, F>(
&self,
req: <BackendWithGlobalOptions<Back> as Backend>::HttpRequest,
process: F
) -> Box<dyn Stream<Item = Result<Res, <BackendWithGlobalOptions<Back> as Backend>::Error>> + Unpin + 'static, Global>where
F: 'static + Send + Fn(<BackendWithGlobalOptions<Back> as Backend>::HttpResponse) -> Box<dyn Stream<Item = Result<Res, <BackendWithGlobalOptions<Back> as Backend>::Error>> + Unpin + 'static, Global>,
Generic method for making a request that expects back a streaming
response.
§fn process_error_from_body(body: Bytes) -> Self::Error
fn process_error_from_body(body: Bytes) -> Self::Error
Builds an Api error from a response body.
§fn process_json_response<Res>(
status: StatusCode,
body: Bytes
) -> Result<Res, Self::Error>where
Res: 'static + for<'de> Deserialize<'de> + Send,
fn process_json_response<Res>(
status: StatusCode,
body: Bytes
) -> Result<Res, Self::Error>where
Res: 'static + for<'de> Deserialize<'de> + Send,
Processes a response that expects a json encoded body, returning an
error or a deserialized json response.
§fn process_stream_response<D, Res>(
res: Self::HttpResponse,
decoder: D
) -> FramedRead<StreamReader<Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>>, D>where
D: Decoder<Item = Res, Error = Error>,
fn process_stream_response<D, Res>(
res: Self::HttpResponse,
decoder: D
) -> FramedRead<StreamReader<Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>>, D>where
D: Decoder<Item = Res, Error = Error>,
Processes a response that returns a stream of json deserializable
results.
§fn request<'life0, 'async_trait, Req, Res>(
&'life0 self,
req: Req,
form: Option<Form<'static>>
) -> Pin<Box<dyn Future<Output = Result<Res, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Req: ApiRequest + 'async_trait,
Res: 'static + for<'de> Deserialize<'de> + Send + 'async_trait,
Self: 'async_trait,
fn request<'life0, 'async_trait, Req, Res>(
&'life0 self,
req: Req,
form: Option<Form<'static>>
) -> Pin<Box<dyn Future<Output = Result<Res, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Req: ApiRequest + 'async_trait,
Res: 'static + for<'de> Deserialize<'de> + Send + 'async_trait,
Self: 'async_trait,
Generic method for making a request to the Ipfs server, and getting
a deserializable response.
§fn request_empty<'life0, 'async_trait, Req>(
&'life0 self,
req: Req,
form: Option<Form<'static>>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Req: ApiRequest + 'async_trait,
Self: 'async_trait,
fn request_empty<'life0, 'async_trait, Req>(
&'life0 self,
req: Req,
form: Option<Form<'static>>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Req: ApiRequest + 'async_trait,
Self: 'async_trait,
Generic method for making a request to the Ipfs server, and getting
back a response with no body.
§fn request_string<'life0, 'async_trait, Req>(
&'life0 self,
req: Req,
form: Option<Form<'static>>
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Req: ApiRequest + 'async_trait,
Self: 'async_trait,
fn request_string<'life0, 'async_trait, Req>(
&'life0 self,
req: Req,
form: Option<Form<'static>>
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Req: ApiRequest + 'async_trait,
Self: 'async_trait,
Generic method for making a request to the Ipfs server, and getting
back a raw String response.
§fn request_stream_bytes(
&self,
req: Self::HttpRequest
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
fn request_stream_bytes(
&self,
req: Self::HttpRequest
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
Generic method for making a request to the Ipfs server, and getting
back a raw stream of bytes.
§fn request_stream_json<Res>(
&self,
req: Self::HttpRequest
) -> Box<dyn Stream<Item = Result<Res, Self::Error>> + Unpin + 'static, Global>where
Res: 'static + for<'de> Deserialize<'de> + Send,
fn request_stream_json<Res>(
&self,
req: Self::HttpRequest
) -> Box<dyn Stream<Item = Result<Res, Self::Error>> + Unpin + 'static, Global>where
Res: 'static + for<'de> Deserialize<'de> + Send,
Generic method to return a streaming response of deserialized json
objects delineated by new line separators.
Auto Trait Implementations§
impl<Back> RefUnwindSafe for BackendWithGlobalOptions<Back>where
Back: RefUnwindSafe,
impl<Back> Send for BackendWithGlobalOptions<Back>where
Back: Send,
impl<Back> Sync for BackendWithGlobalOptions<Back>where
Back: Sync,
impl<Back> Unpin for BackendWithGlobalOptions<Back>where
Back: Unpin,
impl<Back> UnwindSafe for BackendWithGlobalOptions<Back>where
Back: UnwindSafe,
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<B> IpfsApi for Bwhere
B: Backend,
impl<B> IpfsApi for Bwhere
B: Backend,
§fn add<'life0, 'async_trait, R>(
&'life0 self,
data: R
) -> Pin<Box<dyn Future<Output = Result<AddResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
fn add<'life0, 'async_trait, R>(
&'life0 self,
data: R
) -> Pin<Box<dyn Future<Output = Result<AddResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
Add file to Ipfs. Read more
§fn add_async<'life0, 'async_trait, R>(
&'life0 self,
data: R
) -> Pin<Box<dyn Future<Output = Result<AddResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
R: 'static + AsyncRead + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
fn add_async<'life0, 'async_trait, R>(
&'life0 self,
data: R
) -> Pin<Box<dyn Future<Output = Result<AddResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
R: 'static + AsyncRead + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
Add AsyncRead stream to Ipfs. Read more
§fn add_with_options<'life0, 'life1, 'async_trait, R>(
&'life0 self,
data: R,
add: Add<'life1>
) -> Pin<Box<dyn Future<Output = Result<AddResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
fn add_with_options<'life0, 'life1, 'async_trait, R>(
&'life0 self,
data: R,
add: Add<'life1>
) -> Pin<Box<dyn Future<Output = Result<AddResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
Add a file to IPFS with options. Read more
§fn add_async_with_options<'life0, 'life1, 'async_trait, R>(
&'life0 self,
data: R,
add: Add<'life1>
) -> Pin<Box<dyn Future<Output = Result<AddResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
R: 'static + AsyncRead + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
fn add_async_with_options<'life0, 'life1, 'async_trait, R>(
&'life0 self,
data: R,
add: Add<'life1>
) -> Pin<Box<dyn Future<Output = Result<AddResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
R: 'static + AsyncRead + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
Add AsyncRead stream to IPFS with options. Read more
§fn add_with_form<'life0, 'life1, 'async_trait, F>(
&'life0 self,
form: F,
add: Add<'life1>
) -> Pin<Box<dyn Future<Output = Result<Vec<AddResponse, Global>, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
F: Into<Form<'static>> + Send + 'async_trait,
Self: 'async_trait,
fn add_with_form<'life0, 'life1, 'async_trait, F>(
&'life0 self,
form: F,
add: Add<'life1>
) -> Pin<Box<dyn Future<Output = Result<Vec<AddResponse, Global>, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
F: Into<Form<'static>> + Send + 'async_trait,
Self: 'async_trait,
Add files using multipart::Form Read more
§fn add_path<'life0, 'async_trait, P>(
&'life0 self,
path: P
) -> Pin<Box<dyn Future<Output = Result<Vec<AddResponse, Global>, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
P: AsRef<Path> + Send + 'async_trait,
Self: 'async_trait,
fn add_path<'life0, 'async_trait, P>(
&'life0 self,
path: P
) -> Pin<Box<dyn Future<Output = Result<Vec<AddResponse, Global>, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
P: AsRef<Path> + Send + 'async_trait,
Self: 'async_trait,
Add a path to Ipfs. Can be a file or directory.
A hard limit of 128 open file descriptors is set such
that any small additional files are stored in-memory. Read more
§fn bitswap_ledger<'life0, 'life1, 'async_trait>(
&'life0 self,
peer: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<BitswapLedgerResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn bitswap_ledger<'life0, 'life1, 'async_trait>(
&'life0 self,
peer: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<BitswapLedgerResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Returns the current ledger for a peer. Read more
§fn bitswap_reprovide<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn bitswap_reprovide<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Triggers a reprovide. Read more
§fn bitswap_stat<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<BitswapStatResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn bitswap_stat<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<BitswapStatResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns some stats about the bitswap agent. Read more
§fn bitswap_unwant<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn bitswap_unwant<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Remove a given block from your wantlist. Read more
§fn bitswap_wantlist<'life0, 'life1, 'async_trait>(
&'life0 self,
peer: Option<&'life1 str>
) -> Pin<Box<dyn Future<Output = Result<BitswapWantlistResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn bitswap_wantlist<'life0, 'life1, 'async_trait>(
&'life0 self,
peer: Option<&'life1 str>
) -> Pin<Box<dyn Future<Output = Result<BitswapWantlistResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Shows blocks on the wantlist for you or the specified peer. Read more
§fn block_get(
&self,
hash: &str
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
fn block_get(
&self,
hash: &str
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
Gets a raw IPFS block. Read more
§fn block_put<'life0, 'async_trait, R>(
&'life0 self,
data: R
) -> Pin<Box<dyn Future<Output = Result<BlockPutResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
fn block_put<'life0, 'async_trait, R>(
&'life0 self,
data: R
) -> Pin<Box<dyn Future<Output = Result<BlockPutResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
Store input as an IPFS block. Read more
§fn block_put_with_options<'life0, 'async_trait, R>(
&'life0 self,
data: R,
options: BlockPut<'async_trait>
) -> Pin<Box<dyn Future<Output = Result<BlockPutResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
fn block_put_with_options<'life0, 'async_trait, R>(
&'life0 self,
data: R,
options: BlockPut<'async_trait>
) -> Pin<Box<dyn Future<Output = Result<BlockPutResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
Store input as an IPFS block with options. Read more
§fn block_rm<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<BlockRmResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn block_rm<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<BlockRmResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Removes an IPFS block. Read more
§fn block_stat<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<BlockStatResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn block_stat<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<BlockStatResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Prints information about a raw IPFS block. Read more
§fn bootstrap_add_default<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<BootstrapAddDefaultResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn bootstrap_add_default<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<BootstrapAddDefaultResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Add default peers to the bootstrap list. Read more
§fn bootstrap_list<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<BootstrapListResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn bootstrap_list<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<BootstrapListResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Lists peers in bootstrap list. Read more
§fn bootstrap_rm_all<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<BootstrapRmAllResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn bootstrap_rm_all<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<BootstrapRmAllResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Removes all peers in bootstrap list. Read more
§fn cat(
&self,
path: &str
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
fn cat(
&self,
path: &str
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
Returns the contents of an Ipfs object. Read more
§fn cat_range(
&self,
path: &str,
_offset: usize,
_length: usize
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
fn cat_range(
&self,
path: &str,
_offset: usize,
_length: usize
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
Returns the the specified range of bytes of an Ipfs object. Read more
§fn commands<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<CommandsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn commands<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<CommandsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
List available commands that the server accepts. Read more
§fn config_get_string<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ConfigResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn config_get_string<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ConfigResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Get ipfs config strings. Read more
§fn config_get_bool<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ConfigResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn config_get_bool<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ConfigResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Get ipfs config booleans. Read more
§fn config_get_json<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ConfigResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn config_get_json<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ConfigResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Get ipfs config json. Read more
§fn config_set_string<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<ConfigResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn config_set_string<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<ConfigResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Set ipfs config string. Read more
§fn config_set_bool<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: bool
) -> Pin<Box<dyn Future<Output = Result<ConfigResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn config_set_bool<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: bool
) -> Pin<Box<dyn Future<Output = Result<ConfigResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Set ipfs config boolean. Read more
§fn config_set_json<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<ConfigResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn config_set_json<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<ConfigResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Set ipfs config json. Read more
§fn config_edit<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn config_edit<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Opens the config file for editing (on the server). Read more
§fn config_replace<'life0, 'async_trait, R>(
&'life0 self,
data: R
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
fn config_replace<'life0, 'async_trait, R>(
&'life0 self,
data: R
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
Replace the config file. Read more
§fn config_show<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn config_show<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Show the current config of the server. Read more
§fn dag_get(
&self,
path: &str
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
fn dag_get(
&self,
path: &str
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
Returns information about a dag node in Ipfs. Read more
§fn dag_get_with_options(
&self,
options: DagGet<'_>
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
fn dag_get_with_options(
&self,
options: DagGet<'_>
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
Returns information about a dag node in Ipfs with options. Read more
§fn dag_put<'life0, 'async_trait, R>(
&'life0 self,
data: R
) -> Pin<Box<dyn Future<Output = Result<DagPutResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
fn dag_put<'life0, 'async_trait, R>(
&'life0 self,
data: R
) -> Pin<Box<dyn Future<Output = Result<DagPutResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
Add a DAG node to Ipfs. Read more
§fn dag_put_with_options<'a, 'life0, 'async_trait, R>(
&'life0 self,
data: R,
options: DagPut<'a>
) -> Pin<Box<dyn Future<Output = Result<DagPutResponse, Self::Error>> + 'async_trait, Global>>where
'a: 'async_trait,
'life0: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
fn dag_put_with_options<'a, 'life0, 'async_trait, R>(
&'life0 self,
data: R,
options: DagPut<'a>
) -> Pin<Box<dyn Future<Output = Result<DagPutResponse, Self::Error>> + 'async_trait, Global>>where
'a: 'async_trait,
'life0: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
Add a DAG node to Ipfs with options. Read more
§fn dht_findpeer(
&self,
peer: &str
) -> Box<dyn Stream<Item = Result<DhtMessage, Self::Error>> + Unpin + 'static, Global>
fn dht_findpeer(
&self,
peer: &str
) -> Box<dyn Stream<Item = Result<DhtMessage, Self::Error>> + Unpin + 'static, Global>
Query the DHT for all of the multiaddresses associated with a Peer ID. Read more
§fn dht_findprovs(
&self,
key: &str
) -> Box<dyn Stream<Item = Result<DhtMessage, Self::Error>> + Unpin + 'static, Global>
fn dht_findprovs(
&self,
key: &str
) -> Box<dyn Stream<Item = Result<DhtMessage, Self::Error>> + Unpin + 'static, Global>
Find peers in the DHT that can provide a specific value given a key. Read more
§fn dht_get(
&self,
key: &str
) -> Box<dyn Stream<Item = Result<DhtMessage, Self::Error>> + Unpin + 'static, Global>
fn dht_get(
&self,
key: &str
) -> Box<dyn Stream<Item = Result<DhtMessage, Self::Error>> + Unpin + 'static, Global>
Query the DHT for a given key. Read more
§fn dht_provide(
&self,
key: &str
) -> Box<dyn Stream<Item = Result<DhtMessage, Self::Error>> + Unpin + 'static, Global>
fn dht_provide(
&self,
key: &str
) -> Box<dyn Stream<Item = Result<DhtMessage, Self::Error>> + Unpin + 'static, Global>
Announce to the network that you are providing a given value. Read more
§fn dht_put(
&self,
key: &str,
value: &str
) -> Box<dyn Stream<Item = Result<DhtMessage, Self::Error>> + Unpin + 'static, Global>
fn dht_put(
&self,
key: &str,
value: &str
) -> Box<dyn Stream<Item = Result<DhtMessage, Self::Error>> + Unpin + 'static, Global>
Write a key/value pair to the DHT. Read more
§fn dht_query(
&self,
peer: &str
) -> Box<dyn Stream<Item = Result<DhtMessage, Self::Error>> + Unpin + 'static, Global>
fn dht_query(
&self,
peer: &str
) -> Box<dyn Stream<Item = Result<DhtMessage, Self::Error>> + Unpin + 'static, Global>
Find the closest peer given the peer ID by querying the DHT. Read more
§fn diag_cmds_clear<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn diag_cmds_clear<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Clear inactive requests from the log. Read more
§fn diag_cmds_set_time<'life0, 'life1, 'async_trait>(
&'life0 self,
time: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn diag_cmds_set_time<'life0, 'life1, 'async_trait>(
&'life0 self,
time: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Set how long to keep inactive requests in the log. Read more
§fn diag_sys<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn diag_sys<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Print system diagnostic information. Read more
§fn dns<'life0, 'life1, 'async_trait>(
&'life0 self,
link: &'life1 str,
recursive: bool
) -> Pin<Box<dyn Future<Output = Result<DnsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn dns<'life0, 'life1, 'async_trait>(
&'life0 self,
link: &'life1 str,
recursive: bool
) -> Pin<Box<dyn Future<Output = Result<DnsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Resolve DNS link. Read more
§fn file_ls<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<FileLsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn file_ls<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<FileLsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
List directory for Unix filesystem objects. Read more
§fn files_cp<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
path: &'life1 str,
dest: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn files_cp<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
path: &'life1 str,
dest: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Copy files into MFS. Read more
§fn files_cp_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: FilesCp<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn files_cp_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: FilesCp<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Copy files into MFS. Read more
§fn files_flush<'life0, 'life1, 'async_trait>(
&'life0 self,
path: Option<&'life1 str>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn files_flush<'life0, 'life1, 'async_trait>(
&'life0 self,
path: Option<&'life1 str>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Flush a path’s data to disk. Read more
§fn files_ls<'life0, 'life1, 'async_trait>(
&'life0 self,
path: Option<&'life1 str>
) -> Pin<Box<dyn Future<Output = Result<FilesLsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn files_ls<'life0, 'life1, 'async_trait>(
&'life0 self,
path: Option<&'life1 str>
) -> Pin<Box<dyn Future<Output = Result<FilesLsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
List directories in MFS. Read more
§fn files_ls_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: FilesLs<'life1>
) -> Pin<Box<dyn Future<Output = Result<FilesLsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn files_ls_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: FilesLs<'life1>
) -> Pin<Box<dyn Future<Output = Result<FilesLsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
List directories in MFS.. Read more
§fn files_mkdir<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
parents: bool
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn files_mkdir<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
parents: bool
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Make directories in MFS. Read more
§fn files_mkdir_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: FilesMkdir<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn files_mkdir_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: FilesMkdir<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Make directories in MFS. Read more
§fn files_mv<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
path: &'life1 str,
dest: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn files_mv<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
path: &'life1 str,
dest: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Copy files into MFS. Read more
§fn files_mv_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: FilesMv<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn files_mv_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: FilesMv<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Copy files into MFS. Read more
§fn files_read(
&self,
path: &str
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
fn files_read(
&self,
path: &str
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
Read a file in MFS. Read more
§fn files_read_with_options(
&self,
options: FilesRead<'_>
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
fn files_read_with_options(
&self,
options: FilesRead<'_>
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
Read a file in MFS. Read more
§fn files_rm<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
recursive: bool
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn files_rm<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
recursive: bool
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Remove a file in MFS. Read more
§fn files_rm_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: FilesRm<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn files_rm_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: FilesRm<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Remove a file in MFS. Read more
§fn files_stat<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<FilesStatResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn files_stat<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<FilesStatResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Display a file’s status in MFS. Read more
§fn files_stat_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: FilesStat<'life1>
) -> Pin<Box<dyn Future<Output = Result<FilesStatResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn files_stat_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: FilesStat<'life1>
) -> Pin<Box<dyn Future<Output = Result<FilesStatResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Display a file’s status in MFS. Read more
§fn files_write<'life0, 'life1, 'async_trait, R>(
&'life0 self,
path: &'life1 str,
create: bool,
truncate: bool,
data: R
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
fn files_write<'life0, 'life1, 'async_trait, R>(
&'life0 self,
path: &'life1 str,
create: bool,
truncate: bool,
data: R
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
Write to a mutable file in the filesystem. Read more
§fn files_write_with_options<'life0, 'life1, 'async_trait, R>(
&'life0 self,
options: FilesWrite<'life1>,
data: R
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
fn files_write_with_options<'life0, 'life1, 'async_trait, R>(
&'life0 self,
options: FilesWrite<'life1>,
data: R
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
Write to a mutable file in the filesystem. Read more
§fn files_chcid<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
cid_version: i32
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn files_chcid<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
cid_version: i32
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Change the cid version or hash function of the root node of a given path. Read more
§fn files_chcid_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: FilesChcid<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn files_chcid_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: FilesChcid<'life1>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Change the cid version or hash function of the root node of a given path. Read more
§fn filestore_dups(
&self
) -> Box<dyn Stream<Item = Result<FilestoreDupsResponse, Self::Error>> + Unpin + 'static, Global>
fn filestore_dups(
&self
) -> Box<dyn Stream<Item = Result<FilestoreDupsResponse, Self::Error>> + Unpin + 'static, Global>
List blocks that are both in the filestore and standard block storage. Read more
§fn filestore_ls(
&self,
cid: Option<&str>
) -> Box<dyn Stream<Item = Result<FilestoreObject, Self::Error>> + Unpin + 'static, Global>
fn filestore_ls(
&self,
cid: Option<&str>
) -> Box<dyn Stream<Item = Result<FilestoreObject, Self::Error>> + Unpin + 'static, Global>
List objects in filestore. Read more
§fn filestore_verify(
&self,
cid: Option<&str>
) -> Box<dyn Stream<Item = Result<FilestoreObject, Self::Error>> + Unpin + 'static, Global>
fn filestore_verify(
&self,
cid: Option<&str>
) -> Box<dyn Stream<Item = Result<FilestoreObject, Self::Error>> + Unpin + 'static, Global>
Verify objects in filestore. Read more
§fn get(
&self,
path: &str
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
fn get(
&self,
path: &str
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
Download Ipfs object. Read more
§fn id<'life0, 'life1, 'async_trait>(
&'life0 self,
peer: Option<&'life1 str>
) -> Pin<Box<dyn Future<Output = Result<IdResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn id<'life0, 'life1, 'async_trait>(
&'life0 self,
peer: Option<&'life1 str>
) -> Pin<Box<dyn Future<Output = Result<IdResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Returns information about a peer. Read more
§fn key_gen<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
kind: KeyType,
size: i32
) -> Pin<Box<dyn Future<Output = Result<KeyPair, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn key_gen<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
kind: KeyType,
size: i32
) -> Pin<Box<dyn Future<Output = Result<KeyPair, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Create a new keypair. Read more
§fn key_list<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<KeyPairList, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn key_list<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<KeyPairList, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
List all local keypairs. Read more
§fn key_rename<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
new: &'life2 str,
force: bool
) -> Pin<Box<dyn Future<Output = Result<KeyRenameResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn key_rename<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
new: &'life2 str,
force: bool
) -> Pin<Box<dyn Future<Output = Result<KeyRenameResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Rename a keypair. Read more
§fn key_rm<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<KeyPairList, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn key_rm<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<KeyPairList, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Remove a keypair. Read more
§fn log_level<'life0, 'life1, 'async_trait>(
&'life0 self,
logger: Logger<'life1>,
level: LoggingLevel
) -> Pin<Box<dyn Future<Output = Result<LogLevelResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn log_level<'life0, 'life1, 'async_trait>(
&'life0 self,
logger: Logger<'life1>,
level: LoggingLevel
) -> Pin<Box<dyn Future<Output = Result<LogLevelResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Change the logging level for a logger. Read more
§fn log_ls<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<LogLsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn log_ls<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<LogLsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
List all logging subsystems. Read more
§fn log_tail(
&self
) -> Box<dyn Stream<Item = Result<String, Self::Error>> + Unpin + 'static, Global>
fn log_tail(
&self
) -> Box<dyn Stream<Item = Result<String, Self::Error>> + Unpin + 'static, Global>
Read the event log. Read more
§fn ls<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<LsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn ls<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<LsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
List the contents of an Ipfs multihash. Read more
§fn ls_with_options(
&self,
options: Ls<'_>
) -> Box<dyn Stream<Item = Result<LsResponse, Self::Error>> + Unpin + 'static, Global>
fn ls_with_options(
&self,
options: Ls<'_>
) -> Box<dyn Stream<Item = Result<LsResponse, Self::Error>> + Unpin + 'static, Global>
List the contents of an Ipfs multihash. Read more
§fn name_publish<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
path: &'life1 str,
resolve: bool,
lifetime: Option<&'life2 str>,
ttl: Option<&'life3 str>,
key: Option<&'life4 str>
) -> Pin<Box<dyn Future<Output = Result<NamePublishResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
fn name_publish<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
path: &'life1 str,
resolve: bool,
lifetime: Option<&'life2 str>,
ttl: Option<&'life3 str>,
key: Option<&'life4 str>
) -> Pin<Box<dyn Future<Output = Result<NamePublishResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
Publish an IPFS path to IPNS. Read more
§fn name_resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
recursive: bool,
nocache: bool
) -> Pin<Box<dyn Future<Output = Result<NameResolveResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn name_resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
recursive: bool,
nocache: bool
) -> Pin<Box<dyn Future<Output = Result<NameResolveResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Resolve an IPNS name. Read more
§fn object_data(
&self,
key: &str
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
fn object_data(
&self,
key: &str
) -> Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Unpin + 'static, Global>
Output the raw bytes of an Ipfs object. Read more
§fn object_diff<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key0: &'life1 str,
key1: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<ObjectDiffResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn object_diff<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key0: &'life1 str,
key1: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<ObjectDiffResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Returns the diff of two Ipfs objects. Read more
§fn object_get<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ObjectGetResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn object_get<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ObjectGetResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Returns the data in an object. Read more
§fn object_links<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ObjectLinksResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn object_links<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ObjectLinksResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Returns the links that an object points to. Read more
§fn object_new<'life0, 'async_trait>(
&'life0 self,
template: Option<ObjectTemplate>
) -> Pin<Box<dyn Future<Output = Result<ObjectNewResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn object_new<'life0, 'async_trait>(
&'life0 self,
template: Option<ObjectTemplate>
) -> Pin<Box<dyn Future<Output = Result<ObjectNewResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Create a new object. Read more
§fn object_patch_add_link<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
folder: &'life1 str,
name: &'life2 str,
key: &'life3 str,
create: bool
) -> Pin<Box<dyn Future<Output = Result<ObjectPatchAddLinkResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn object_patch_add_link<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
folder: &'life1 str,
name: &'life2 str,
key: &'life3 str,
create: bool
) -> Pin<Box<dyn Future<Output = Result<ObjectPatchAddLinkResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
Add a directory link to an object. Read more
§fn object_stat<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ObjectStatResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn object_stat<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ObjectStatResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Returns the stats for an object. Read more
§fn pin_add<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
recursive: bool
) -> Pin<Box<dyn Future<Output = Result<PinAddResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn pin_add<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
recursive: bool
) -> Pin<Box<dyn Future<Output = Result<PinAddResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Pins a new object. Read more
§fn pin_ls<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: Option<&'life1 str>,
typ: Option<&'life2 str>
) -> Pin<Box<dyn Future<Output = Result<PinLsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn pin_ls<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: Option<&'life1 str>,
typ: Option<&'life2 str>
) -> Pin<Box<dyn Future<Output = Result<PinLsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Returns a list of pinned objects in local storage. Read more
§fn pin_rm<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
recursive: bool
) -> Pin<Box<dyn Future<Output = Result<PinRmResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn pin_rm<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
recursive: bool
) -> Pin<Box<dyn Future<Output = Result<PinRmResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Removes a pinned object from local storage. Read more
§fn ping(
&self,
peer: &str,
count: Option<i32>
) -> Box<dyn Stream<Item = Result<PingResponse, Self::Error>> + Unpin + 'static, Global>
fn ping(
&self,
peer: &str,
count: Option<i32>
) -> Box<dyn Stream<Item = Result<PingResponse, Self::Error>> + Unpin + 'static, Global>
Pings a peer. Read more
§fn pubsub_ls<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<PubsubLsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn pubsub_ls<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<PubsubLsResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
List subscribed pubsub topics. Read more
§fn pubsub_peers<'life0, 'async_trait, T>(
&'life0 self,
topic: Option<T>
) -> Pin<Box<dyn Future<Output = Result<PubsubPeersResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
T: AsRef<[u8]> + Send + Sync + 'async_trait,
Self: 'async_trait,
fn pubsub_peers<'life0, 'async_trait, T>(
&'life0 self,
topic: Option<T>
) -> Pin<Box<dyn Future<Output = Result<PubsubPeersResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
T: AsRef<[u8]> + Send + Sync + 'async_trait,
Self: 'async_trait,
List peers that are being published to. Read more
§fn pubsub_pub<'life0, 'async_trait, T, R>(
&'life0 self,
topic: T,
data: R
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
T: AsRef<[u8]> + Send + Sync + 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
fn pubsub_pub<'life0, 'async_trait, T, R>(
&'life0 self,
topic: T,
data: R
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
T: AsRef<[u8]> + Send + Sync + 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
Publish a message to a topic. Read more
§fn pubsub_sub<T>(
&self,
topic: T
) -> Box<dyn Stream<Item = Result<PubsubSubResponse, Self::Error>> + Unpin + 'static, Global>where
T: AsRef<[u8]>,
fn pubsub_sub<T>(
&self,
topic: T
) -> Box<dyn Stream<Item = Result<PubsubSubResponse, Self::Error>> + Unpin + 'static, Global>where
T: AsRef<[u8]>,
Subscribes to a pubsub topic. Read more
§fn refs_local(
&self
) -> Box<dyn Stream<Item = Result<RefsLocalResponse, Self::Error>> + Unpin + 'static, Global>
fn refs_local(
&self
) -> Box<dyn Stream<Item = Result<RefsLocalResponse, Self::Error>> + Unpin + 'static, Global>
Gets a list of local references. Read more
§fn shutdown<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn shutdown<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Shutdown the Ipfs daemon. Read more
§fn stats_bitswap<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<BitswapStatResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn stats_bitswap<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<BitswapStatResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns bitswap stats. Read more
§fn stats_bw<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<StatsBwResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn stats_bw<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<StatsBwResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns bandwidth stats. Read more
§fn stats_repo<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<RepoStatResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn stats_repo<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<RepoStatResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns repo stats. Read more
§fn swarm_addrs_local<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<SwarmAddrsLocalResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn swarm_addrs_local<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<SwarmAddrsLocalResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Return a list of local addresses. Read more
§fn swarm_connect<'life0, 'life1, 'async_trait>(
&'life0 self,
peer: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<SwarmConnectResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn swarm_connect<'life0, 'life1, 'async_trait>(
&'life0 self,
peer: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<SwarmConnectResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Connect to a given peer Read more
§fn swarm_peers<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<SwarmPeersResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn swarm_peers<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<SwarmPeersResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Return a list of peers with open connections. Read more
§fn tar_add<'life0, 'async_trait, R>(
&'life0 self,
data: R
) -> Pin<Box<dyn Future<Output = Result<TarAddResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
fn tar_add<'life0, 'async_trait, R>(
&'life0 self,
data: R
) -> Pin<Box<dyn Future<Output = Result<TarAddResponse, Self::Error>> + 'async_trait, Global>>where
'life0: 'async_trait,
R: 'static + Read + Send + Sync + Unpin + 'async_trait,
Self: 'async_trait,
Add a tar file to Ipfs. Read more