pub struct FileStorageProvider;Expand description
FileStorage implements both StorageReadProvider and StorageWriteProvider.
Trait Implementations§
Source§impl Default for FileStorageProvider
impl Default for FileStorageProvider
Source§fn default() -> FileStorageProvider
fn default() -> FileStorageProvider
Returns the “default value” for a type. Read more
Source§impl StorageReadProvider for FileStorageProvider
impl StorageReadProvider for FileStorageProvider
Source§impl StorageWriteProvider for FileStorageProvider
impl StorageWriteProvider for FileStorageProvider
type Writer = BufWriter<File>
Source§fn open_writer(&self, item_identifier: &str) -> Result<Self::Writer>
fn open_writer(&self, item_identifier: &str) -> Result<Self::Writer>
Open a storage with the given identifier for write.
Source§fn create_for_write(&self, item_identifier: &str) -> Result<Self::Writer>
fn create_for_write(&self, item_identifier: &str) -> Result<Self::Writer>
Create a storage with the given identifier for write.
fn delete(&self, item_identifier: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for FileStorageProvider
impl RefUnwindSafe for FileStorageProvider
impl Send for FileStorageProvider
impl Sync for FileStorageProvider
impl Unpin for FileStorageProvider
impl UnsafeUnpin for FileStorageProvider
impl UnwindSafe for FileStorageProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> DynWriteProvider for Twhere
T: StorageWriteProvider,
impl<T> DynWriteProvider for Twhere
T: StorageWriteProvider,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more