Enum stow::Location[][src]

pub enum Location {
    Local(LocalLocation),
}

Variants

Implementations

impl Location[src]

pub async fn new_local(path: &str) -> Result<Self>[src]

Create a new local Location with the given path

pub async fn containers(&self) -> Result<Vec<String>>[src]

pub async fn create_container(&self, container: &str) -> Result<()>[src]

pub async fn remove_container(&self, container: &str) -> Result<()>[src]

pub async fn items(&self, container: &str) -> Result<Vec<String>>[src]

pub async fn create_item(
    &self,
    container: &str,
    item: &str,
    reader: &mut impl AsyncRead + Unpin
) -> Result<()>
[src]

pub async fn read_item(
    &self,
    container: &str,
    item: &str
) -> Result<Box<dyn AsyncRead + Unpin>>
[src]

pub async fn remove_item(&self, container: &str, item: &str) -> Result<()>[src]

Trait Implementations

impl Clone for Location[src]

impl Debug for Location[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.