Crate ipfs_embed[−][src]
Expand description
Ipfs embed is a small, fast and reliable ipfs implementation designed for embedding in to complex p2p applications.
let ipfs = Ipfs::<DefaultParams>::new(Config::new(None, cache_size)).await?; ipfs.listen_on("/ip4/0.0.0.0/tcp/0".parse()?)?;
Re-exports
pub use libp2p::multiaddr; |
Structs
AddressRecord | An record in a prioritised list of addresses. |
BitswapConfig | Bitswap configuration. |
Block | Block |
BroadcastConfig | |
Config | Ipfs configuration. |
DefaultParams | Default store parameters. |
DnsConfig |
|
GossipsubConfig | Configuration parameters that define the performance of the gossipsub network. |
IdentifyConfig | Configuration for the [ |
Ipfs | Ipfs node. |
KadConfig | Configuration for a |
Key | The (opaque) key of a record. |
Keypair | An ed25519 keypair. |
ListenerId | The ID of a single listener. |
MdnsConfig | Configuration for mDNS. |
Multiaddr | Representation of a Multiaddr. |
NetworkConfig | Network configuration. |
PeerId | Identifier of a peer of the network. |
PeerInfo | |
PeerRecord | A record either received by the given peer or retrieved from the local record store. |
PingConfig | The configuration for outbound pings. |
Record | A record stored in the DHT. |
StorageConfig | Storage configuration. |
SyncQuery | A |
TempPin | a handle that contains a temporary pin |
TransportConfig | Parameters governing the core QUIC state machine |
Enums
AddressSource | |
Event | |
ListenerEvent | |
Quorum | A quorum w.r.t. the configured replication factor specifies the minimum number of distinct nodes that must be successfully contacted in order for a query to succeed. |
SyncEvent | An event of a sync query. |
Traits
ToLibp2p |
Functions
generate_keypair |
Type Definitions
Cid | A Cid that contains a multihash with an allocated size of 512 bits. |