Struct ipfs_api::IpfsClient

source ·
pub struct IpfsClient<C = HttpConnector<GaiResolver>>where
    C: 'static + Connect + Clone + Send + Sync,
{ /* private fields */ }

Implementations§

Trait Implementations§

Set basic authentication credentials to use on every request from this client.
Builds the url for an api call.
Get the value of a header from an HTTP response.
Generates a request, and returns the unprocessed response future.
Generic method for making a request that expects back a streaming response.
Builds an Api error from a response body.
Processes a response that expects a json encoded body, returning an error or a deserialized json response.
Processes a response that returns a stream of json deserializable results.
Generic method for making a request to the Ipfs server, and getting a deserializable response.
Generic method for making a request to the Ipfs server, and getting back a response with no body.
Generic method for making a request to the Ipfs server, and getting back a raw String response.
Generic method for making a request to the Ipfs server, and getting back a raw stream of bytes.
Generic method to return a streaming response of deserialized json objects delineated by new line separators.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Creates an IpfsClient connected to the endpoint specified in ~/.ipfs/api. If not found, tries to connect to localhost:5001.

Builds a new client from a base URI to the IPFS API.
Creates a new client from a str. Read more
Creates a new client from a host name and port.
Creates a new client from an IPV4 address and port number.
Creates a new client from an IPV6 addr and port number.
Creates a new client from an IP address and port number.
Creates a new client from a multiaddr.
Creates a new client from a multiaddr.
Creates a new client connected to the endpoint specified in ~/.ipfs/api.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Add file to Ipfs. Read more
Add AsyncRead stream to Ipfs. Read more
Add a file to IPFS with options. Read more
Add AsyncRead stream to IPFS with options. Read more
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
Returns the current ledger for a peer. Read more
Triggers a reprovide. Read more
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
Prints information about a raw IPFS block. Read more
Add default peers to the bootstrap list. Read more
Lists peers in bootstrap list. Read more
Removes all peers in bootstrap list. Read more
Returns the contents of an Ipfs object. Read more
Returns the the specified range of bytes of an Ipfs object. Read more
List available commands that the server accepts. Read more
Get ipfs config strings. Read more
Get ipfs config booleans. Read more
Get ipfs config json. Read more
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
Add a DAG node to Ipfs with options. Read more
Query the DHT for all of the multiaddresses associated with a Peer ID. Read more
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
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
List directories in MFS.. Read more
Make directories in MFS. Read more
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
Display a file’s status in MFS. Read more
Display a file’s status in MFS. Read more
Write to a mutable file in the filesystem. Read more
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
Change the cid version or hash function of the root node of a given path. Read more
List blocks that are both in the filestore and standard block storage. Read more
List objects in filestore. Read more
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
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
List the contents of an Ipfs multihash. Read more
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
Returns the data in an object. Read more
Returns the links that an object points to. Read more
Create a new object. Read more
Add a directory link to an object. Read more
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
Subscribes to a pubsub topic. Read more
Gets a list of local references. Read more
Shutdown the Ipfs daemon. Read more
Returns bitswap stats. Read more
Returns bandwidth stats. Read more
Returns repo stats. Read more
Return a list of local addresses. Read more
Connect to a given peer Read more
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
Returns information about the Ipfs server version. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
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