Struct flatdata::TarArchiveResourceStorage[][src]

pub struct TarArchiveResourceStorage { /* fields omitted */ }
Expand description

Read-only resource storage on disk using a memory mapped tar archive.

Used to read flatdata archives from a tar archive on disk.

Examples

use flatdata::{TarArchiveResourceStorage, Vector};
use flatdata::test::X;

let storage = TarArchiveResourceStorage::new("/root/to/my/archive.tar")
    .expect("failed to read tar archive");
let archive = X::open(storage).expect("failed to open");
// read data
archive.data();

Implementations

Create a memory mapped tar archive resource storage for a tar archive at a given path.

Trait Implementations

Formats the value using the given formatter. Read more

Creates a resource storage at a given subdirectory.

Returns true if resource exists in the storage.

Reads a resource in storage and returns a pointer to its raw data. Read more

Creates a resource with given name and returns an output stream for writing to it. Read more

Open a flatdata resource with given name and schema for reading. Read more

Writes data of a flatdata resource with given name and schema to storage. Read more

Implementation helper for read. 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

Performs the conversion.

Performs the conversion.

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.