Struct rust_ipfs::repo::fs::FsDataStore

source ·
pub struct FsDataStore { /* private fields */ }
Expand description

FsDataStore which uses the filesystem as a lockable key-value store. Maintains a similar to FsBlockStore sharded two level storage. Direct have empty files, recursive pins record all of their indirect descendants. Pin files are separated by their file extensions.

When modifying, single lock is used.

For the crate::repo::PinStore implementation see fs/pinstore.rs.

Trait Implementations§

The column operations are all unimplemented pending at least downscoping of the DataStore trait itself.

Checks if a key is present in the datastore.
Returns the value associated with a key from the datastore.
Puts the value under the key in the datastore.
Removes a key-value pair from the datastore.
Wipes the datastore.
Formats the value using the given formatter. Read more
Returns error if any of the ids isn’t pinned in the required type, otherwise returns the pin details if all of the cids are pinned in one way or the another. Read more

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
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.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Scrape the references from an impl Read. Read more
Should always be Self
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
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