pub struct PosixStore { /* private fields */ }Expand description
A directory. Every path is resolved under the root; .., absolute paths
and empty elements are refused.
Implementations§
Trait Implementations§
Source§impl Clone for PosixStore
impl Clone for PosixStore
Source§fn clone(&self) -> PosixStore
fn clone(&self) -> PosixStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PosixStore
impl Debug for PosixStore
Source§impl TileStore for PosixStore
impl TileStore for PosixStore
Source§fn get(&self, path: &str) -> Result<Option<Vec<u8>>>
fn get(&self, path: &str) -> Result<Option<Vec<u8>>>
The bytes at
path, or nothing when there is no such file.Source§fn put(&self, path: &str, bytes: &[u8]) -> Result<()>
fn put(&self, path: &str, bytes: &[u8]) -> Result<()>
Writes
bytes at path, whole or not at all, replacing what is there.Source§fn create_new(&self, path: &str, bytes: &[u8]) -> Result<bool>
fn create_new(&self, path: &str, bytes: &[u8]) -> Result<bool>
Writes
bytes at path only when nothing is there; false when
something is.Source§fn delete(&self, path: &str) -> Result<bool>
fn delete(&self, path: &str) -> Result<bool>
Removes
path; false when there was nothing to remove.Source§fn rename(&self, from: &str, to: &str) -> Result<()>
fn rename(&self, from: &str, to: &str) -> Result<()>
Moves
from to to, replacing what is at to.Auto Trait Implementations§
impl Freeze for PosixStore
impl RefUnwindSafe for PosixStore
impl Send for PosixStore
impl Sync for PosixStore
impl Unpin for PosixStore
impl UnsafeUnpin for PosixStore
impl UnwindSafe for PosixStore
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