[][src]Struct homebins::ManifestStore

pub struct ManifestStore { /* fields omitted */ }

A store of manifests.

Implementations

impl ManifestStore[src]

pub fn open(base_dir: PathBuf) -> ManifestStore[src]

Open a directory of manifests.

Does not fail because this method doesn't attempt to access base_dir just yet.

pub fn load_manifest<S: AsRef<str>>(&self, name: S) -> Result<Option<Manifest>>[src]

Load a manifest from this store.

Return the manifest if it exists or None if the store has no manifest with the given name. Fail if the store doesn't exist or isn't readable.

pub fn manifests(&self) -> Result<impl Iterator<Item = Result<Manifest>>, Error>[src]

Iterate over all manifests in this store.

Trait Implementations

impl Debug for ManifestStore[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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,