pub enum Location {
Local(LocalLocation),
}Variants§
Local(LocalLocation)
Implementations§
Source§impl Location
impl Location
Sourcepub async fn new_local(path: &str) -> Result<Self>
pub async fn new_local(path: &str) -> Result<Self>
Create a new local Location with the given path
pub async fn containers(&self) -> Result<Vec<String>>
pub async fn create_container(&self, container: &str) -> Result<()>
pub async fn remove_container(&self, container: &str) -> Result<()>
pub async fn items(&self, container: &str) -> Result<Vec<String>>
pub async fn create_item( &self, container: &str, item: &str, reader: &mut (impl AsyncRead + Unpin), ) -> Result<()>
pub async fn read_item( &self, container: &str, item: &str, ) -> Result<Box<dyn AsyncRead + Unpin>>
pub async fn remove_item(&self, container: &str, item: &str) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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