Crate wnfs_common

Source
Expand description

This crate contains the common types and functions used by the WNFS crates.

Re-exports§

pub use blockstore::*;

Modules§

blockstore
libipld
utils

Macros§

impl_storable_from_serde

Structs§

Metadata
The metadata of a node in the WNFS file system.
PathNodes
Represents the directory nodes along a path.

Enums§

BlockStoreError
Block store errors.
Link
A data structure that represents a link in the IPLD graph. Basically it is a “link” to some content addressable value of T.
NodeType
The type of file system node.
PathNodesResult
The kinds of outcome from getting a PathNodes.

Constants§

HASH_BYTE_SIZE
MAX_BLOCK_SIZE

Traits§

LoadIpld
Storable
The trait that defines how to store something in a blockstore.
StoreIpld

Functions§

decode
Decodes recieved DagCbor bytes into a deserializable value.
encode
Encodes a serializable value into DagCbor bytes.

Type Aliases§

HashOutput
The general size of digests in WNFS.