Struct ipfs_api::BackendWithGlobalOptions [−][src]
pub struct BackendWithGlobalOptions<Back> where
Back: Backend, { /* fields omitted */ }
Implementations
Trait Implementations
type HttpRequest = <Back as Backend>::HttpRequest
type HttpRequest = <Back as Backend>::HttpRequest
HTTP request type. Read more
type HttpResponse = <Back as Backend>::HttpResponse
type HttpResponse = <Back as Backend>::HttpResponse
HTTP response type. Read more
pub 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,
pub 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. Read more
pub fn get_header(
res: &<BackendWithGlobalOptions<Back> as Backend>::HttpResponse,
key: HeaderName
) -> Option<&HeaderValue>
pub fn get_header(
res: &<BackendWithGlobalOptions<Back> as Backend>::HttpResponse,
key: HeaderName
) -> Option<&HeaderValue>
Get the value of a header from an HTTP response. Read more
pub 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 + Serialize + 'async_trait,
BackendWithGlobalOptions<Back>: 'async_trait,
pub 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 + Serialize + 'async_trait,
BackendWithGlobalOptions<Back>: 'async_trait,
Generates a request, and returns the unprocessed response future. Read more
pub 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>
pub fn request_stream<Res, F, OutStream>(
&self,
req: <BackendWithGlobalOptions<Back> as Backend>::HttpRequest,
process: F
) -> Box<dyn Stream<Item = Result<Res, <BackendWithGlobalOptions<Back> as Backend>::Error>> + Unpin + 'static, Global> where
OutStream: Stream<Item = Result<Res, <BackendWithGlobalOptions<Back> as Backend>::Error>> + Unpin,
F: 'static + Fn(<BackendWithGlobalOptions<Back> as Backend>::HttpResponse) -> OutStream,
pub fn request_stream<Res, F, OutStream>(
&self,
req: <BackendWithGlobalOptions<Back> as Backend>::HttpRequest,
process: F
) -> Box<dyn Stream<Item = Result<Res, <BackendWithGlobalOptions<Back> as Backend>::Error>> + Unpin + 'static, Global> where
OutStream: Stream<Item = Result<Res, <BackendWithGlobalOptions<Back> as Backend>::Error>> + Unpin,
F: 'static + Fn(<BackendWithGlobalOptions<Back> as Backend>::HttpResponse) -> OutStream,
Generic method for making a request that expects back a streaming response. Read more
Builds an Api error from a response body. Read more
fn process_json_response<Res>(
status: StatusCode,
body: Bytes
) -> Result<Res, Self::Error> where
Res: 'static + for<'de> Deserialize<'de>,
fn process_json_response<Res>(
status: StatusCode,
body: Bytes
) -> Result<Res, Self::Error> where
Res: 'static + for<'de> Deserialize<'de>,
Processes a response that expects a json encoded body, returning an error or a deserialized json response. Read more
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. Read more
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 + Serialize + 'async_trait,
Res: 'static + for<'de> Deserialize<'de> + '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 + Serialize + 'async_trait,
Res: 'static + for<'de> Deserialize<'de> + 'async_trait,
Self: 'async_trait,
Generic method for making a request to the Ipfs server, and getting a deserializable response. Read more
Generic method for making a request to the Ipfs server, and getting back a response with no body. Read more
Generic method for making a request to the Ipfs server, and getting back a raw String response. Read more
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. Read more
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>,
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>,
Generic method to return a streaming response of deserialized json objects delineated by new line separators. Read more
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
Mutably borrows from an owned value. Read more
Add file 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 + '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 + 'async_trait,
Self: 'async_trait,
Add a file 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>> + '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>> + 'async_trait,
Self: 'async_trait,
Add files using multipart::Form Read more
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
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
Remove a given block from your wantlist. Read more
Shows blocks on the wantlist for you or the specified peer. Read more
Gets a raw IPFS block. Read more
Store input as an IPFS block. Read more
Store input as an IPFS block with options. Read more
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
Returns the contents of an Ipfs object. Read more
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
Set ipfs config boolean. Read more
Set ipfs config json. Read more
Opens the config file for editing (on the server). Read more
Replace the config file. Read more
Show the current config of the server. Read more
Returns information about a dag node in Ipfs. Read more
Returns information about a dag node in Ipfs with options. Read more
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 + '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 + '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
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
Write a key/value pair to the DHT. Read more
Find the closest peer given the peer ID by querying the DHT. Read more
Clear inactive requests from the log. Read more
Set how long to keep inactive requests in the log. Read more
Print system diagnostic information. Read more
Resolve DNS link. Read more
List directory for Unix filesystem objects. Read more
Copy files into MFS. Read more
Copy files into MFS. Read more
Flush a path’s data to disk. Read more
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
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
Copy files into MFS. Read more
Copy files into MFS. Read more
Read a file in MFS. Read more
Read a file in MFS. Read more
Remove a file in MFS. Read more
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 + '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 + '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 + '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 + 'async_trait,
Self: 'async_trait,
Write to a mutable file in the filesystem. Read more
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
Download Ipfs object. Read more
Returns information about a peer. Read more
Create a new keypair. Read more
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
Remove a keypair. Read more
Change the logging level for a logger. Read more
List all logging subsystems. Read more
Read the event log. Read more
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
Resolve an IPNS name. Read more
Output the raw bytes of an Ipfs object. Read more
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_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
Pins a new object. Read more
Returns a list of pinned objects in local storage. Read more
Removes a pinned object from local storage. Read more
Pings a peer. Read more
List subscribed pubsub topics. Read more
List peers that are being published to. Read more
Publish a message to a topic. Read more
fn pubsub_sub(
&self,
topic: &str,
discover: bool
) -> Box<dyn Stream<Item = Result<PubsubSubResponse, Self::Error>> + Unpin + 'static, Global>
fn pubsub_sub(
&self,
topic: &str,
discover: bool
) -> Box<dyn Stream<Item = Result<PubsubSubResponse, Self::Error>> + Unpin + 'static, Global>
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
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
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_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
Add a tar file to Ipfs. Read more
Export a tar file from Ipfs. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more