[−][src]Struct flatdata::FileResourceStorage
Resource storage on disk using memory mapped files.
Methods
impl FileResourceStorage
[src]
impl FileResourceStorage
pub fn new<P: Into<PathBuf>>(path: P) -> Rc<Self> | [src] |
Create an empty memory mapped file storage at a given path.
Trait Implementations
impl ResourceStorage for FileResourceStorage
[src]
impl ResourceStorage for FileResourceStorage
fn subdir(&self, dir: &str) -> Rc<dyn ResourceStorage> | [src] |
fn exists(&self, resource_name: &str) -> bool | [src] |
fn read_resource(&self, resource_name: &str) -> Result<&[u8], Error> | [src] |
fn create_output_stream( | [src] |
fn read( | [src] |
Open a flatdata resource with given name and schema for reading. Read more
fn write(&self, resource_name: &str, schema: &str, data: &[u8]) -> Result<()> | [src] |
Writes data of a flatdata resource with given name and schema to storage. Read more
fn read_and_check_schema( | [src] |
Implementation helper for [read
]. Read more
impl Debug for FileResourceStorage
[src]
impl Debug for FileResourceStorage
Auto Trait Implementations
impl Send for FileResourceStorage
impl Send for FileResourceStorage
impl !Sync for FileResourceStorage
impl !Sync for FileResourceStorage
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |