Struct ipfs_api_backend_actix::IpfsClient
source · [−]pub struct IpfsClient { /* private fields */ }
Trait Implementations
sourceimpl Backend for ActixBackend
impl Backend for ActixBackend
type HttpRequest = SendClientRequest
type HttpResponse = ClientResponse<Decoder<Payload>>
type Error = Error
sourcefn build_base_request<Req>(
&self,
req: Req,
form: Option<Form<'static>>
) -> Result<Self::HttpRequest, Error> where
Req: ApiRequest,
fn build_base_request<Req>(
&self,
req: Req,
form: Option<Form<'static>>
) -> Result<Self::HttpRequest, Error> where
Req: ApiRequest,
Builds the url for an api call. Read more
sourcefn get_header(res: &Self::HttpResponse, key: HeaderName) -> Option<&HeaderValue>
fn get_header(res: &Self::HttpResponse, key: HeaderName) -> Option<&HeaderValue>
Get the value of a header from an HTTP response. Read more
sourcefn request_raw<'life0, 'async_trait, Req>(
&'life0 self,
req: Req,
form: Option<Form<'static>>
) -> Pin<Box<dyn Future<Output = Result<(StatusCode, Bytes), Self::Error>> + 'async_trait>> where
Req: ApiRequest,
Req: 'async_trait,
'life0: 'async_trait,
Self: '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), Self::Error>> + 'async_trait>> where
Req: ApiRequest,
Req: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Generates a request, and returns the unprocessed response future. Read more
fn response_to_byte_stream(
res: Self::HttpResponse
) -> BoxStream<Bytes, Self::Error>
sourcefn request_stream<Res, F>(
&self,
req: Self::HttpRequest,
process: F
) -> BoxStream<Res, Self::Error> where
F: 'static + Send + Fn(Self::HttpResponse) -> BoxStream<Res, Self::Error>,
fn request_stream<Res, F>(
&self,
req: Self::HttpRequest,
process: F
) -> BoxStream<Res, Self::Error> where
F: 'static + Send + Fn(Self::HttpResponse) -> BoxStream<Res, Self::Error>,
Generic method for making a request that expects back a streaming response. Read more
sourcefn 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. Read more
sourcefn 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. Read more
sourcefn 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
sourcefn 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. Read more
sourcefn 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. Read more
sourcefn 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. Read more
sourcefn 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
sourcefn 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. Read more
sourceimpl Default for ActixBackend
impl Default for ActixBackend
sourceimpl TryFromUri for ActixBackend
impl TryFromUri for ActixBackend
sourcefn build_with_base_uri(base: Uri) -> Self
fn build_with_base_uri(base: Uri) -> Self
Builds a new client from a base URI to the IPFS API. Read more
sourcefn from_host_and_port(
scheme: Scheme,
host: &str,
port: u16
) -> Result<Self, Error>
fn from_host_and_port(
scheme: Scheme,
host: &str,
port: u16
) -> Result<Self, Error>
Creates a new client from a host name and port. Read more
sourcefn from_ipv4(scheme: Scheme, addr: SocketAddrV4) -> Result<Self, Error>
fn from_ipv4(scheme: Scheme, addr: SocketAddrV4) -> Result<Self, Error>
Creates a new client from an IPV4 address and port number. Read more
sourcefn from_ipv6(scheme: Scheme, addr: SocketAddrV6) -> Result<Self, Error>
fn from_ipv6(scheme: Scheme, addr: SocketAddrV6) -> Result<Self, Error>
Creates a new client from an IPV6 addr and port number. Read more
sourcefn from_socket(scheme: Scheme, socket_addr: SocketAddr) -> Result<Self, Error>
fn from_socket(scheme: Scheme, socket_addr: SocketAddr) -> Result<Self, Error>
Creates a new client from an IP address and port number. Read more
sourcefn from_multiaddr(multiaddr: Multiaddr) -> Result<Self, Error>
fn from_multiaddr(multiaddr: Multiaddr) -> Result<Self, Error>
Creates a new client from a multiaddr. Read more
sourcefn from_multiaddr_str(multiaddr: &str) -> Result<Self, Error>
fn from_multiaddr_str(multiaddr: &str) -> Result<Self, Error>
Creates a new client from a multiaddr. Read more
sourcefn from_ipfs_config() -> Option<Self>
fn from_ipfs_config() -> Option<Self>
Creates a new client connected to the endpoint specified in ~/.ipfs/api. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ActixBackend
impl !Send for ActixBackend
impl !Sync for ActixBackend
impl Unpin for ActixBackend
impl !UnwindSafe for ActixBackend
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<B> IpfsApi for B where
B: Backend,
impl<B> IpfsApi for B where
B: Backend,
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more