Struct persist::file::FileBlob [−][src]
pub struct FileBlob {
core: FileBlobCore,
}
Expand description
Implementation of Blob backed by files.
Fields
core: FileBlobCore
Implementations
Trait Implementations
Returns a new FileBlob which stores files under the given dir.
To ensure directory-wide mutual exclusion, a LOCK file is placed in base_dir at construction time. If this file already exists (indicating that another FileBlob is already using the dir), an error is returned.
The contents of lock_info
are stored in the LOCK file and should
include anything that would help debug an unexpected LOCK file, such as
version, ip, worker number, etc.
type Config = FileBlobConfig
type Config = FileBlobConfig
The configuration necessary to open this type of storage.
type Read = FileBlobRead
type Read = FileBlobRead
The corresponding BlobRead implementation.
Opens the given location for non-exclusive read-only access. Read more
Inserts a key-value pair into the map. Read more
Returns a reference to the value corresponding to the key.
List all of the keys in the map.
Auto Trait Implementations
impl RefUnwindSafe for FileBlob
impl UnwindSafe for FileBlob
Blanket Implementations
Mutably borrows from an owned value. 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