[−][src]Struct homebins::ManifestStore
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
Auto Trait Implementations
impl RefUnwindSafe for ManifestStore
impl Send for ManifestStore
impl Sync for ManifestStore
impl Unpin for ManifestStore
impl UnwindSafe for ManifestStore
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,