[][src]Struct asuran::manifest::Manifest

pub struct Manifest<T: Backend> {
    internal_manifest: T::Manifest,
}

Repository manifest

This is the root object of the repository, all objects that are active can be reached through the Mainfest.

Fields

internal_manifest: T::Manifest

Methods

impl<T: BackendClone> Manifest<T>[src]

pub fn load(repo: &Repository<T>) -> Manifest<T> where
    T: Backend
[src]

Loads the manifest from the repository

Panics

Will panic if loading the manifest fails

pub async fn set_chunk_settings<'_>(
    &'_ mut self,
    settings: ChunkSettings
) -> Result<()>
[src]

Set the Chunk Settings used by the repository

pub async fn chunk_settings<'_>(&'_ mut self) -> ChunkSettings[src]

Gets the default Chunk Settings for the repository

pub async fn commit_archive<'_, '_>(
    &'_ mut self,
    repo: &'_ mut Repository<impl BackendClone>,
    archive: ActiveArchive
) -> Result<()>
[src]

Commits an archive to the manifest, then the manifest to the repository

Consumes the repository while commiting it.

Panics

Will panic if commiting the archive to the repository fails

pub async fn archives<'_>(&'_ mut self) -> Vec<StoredArchive>[src]

Returns a copy of the list of archives in this repository

Theses can be converted into full archives with StoredArchive::load

pub async fn timestamp<'_>(&'_ mut self) -> Result<DateTime<FixedOffset>>[src]

Provides the timestamp of the manifest's last modification

Trait Implementations

impl<T: Clone + Backend> Clone for Manifest<T> where
    T::Manifest: Clone
[src]

impl<T: Debug + Backend> Debug for Manifest<T> where
    T::Manifest: Debug
[src]

impl<'de, T: Backend> Deserialize<'de> for Manifest<T> where
    T::Manifest: Deserialize<'de>, 
[src]

impl<T: Backend> Serialize for Manifest<T> where
    T::Manifest: Serialize
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Manifest<T> where
    <T as Backend>::Manifest: RefUnwindSafe

impl<T> Send for Manifest<T> where
    <T as Backend>::Manifest: Send

impl<T> Sync for Manifest<T> where
    <T as Backend>::Manifest: Sync

impl<T> Unpin for Manifest<T> where
    <T as Backend>::Manifest: Unpin

impl<T> UnwindSafe for Manifest<T> where
    <T as Backend>::Manifest: UnwindSafe

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

impl<T> Instrument 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> 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.

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

impl<T> WithSubscriber for T[src]