[−][src]Crate ipfs_embed
IpfsEmbed is an embeddable ipfs implementation.
use ipfs_embed::{Config, Store, Multicodec, Multihash}; let config = Config::from_path_local("/tmp/db")?; let store = Store::<Multicodec, Multihash>::new(config)?;
Structs
Cid | Representation of a CID. |
Config | |
IVec | A buffer that may either be inline or remote and protected by an Arc |
Metadata | |
Multiaddr | Representation of a Multiaddr. |
NetworkConfig | Network configuration. |
PeerId | Identifier of a peer of the network. |
Store |
Enums
Multicodec | Default codecs. |
Multihash | Default (cryptographically secure) Multihash implementation. |
Constants
MAX_BLOCK_SIZE | The maximum block size is 1MiB. |
TREE |
Traits
AliasStore | Implemented by ipld storage backends that support aliasing |
ReadonlyStore | Implementable by ipld storage providers. |
WritableStore | Implementable by ipld storage backends. |