Struct asuran::manifest::Manifest [−][src]
pub struct Manifest<T: Backend> { /* fields omitted */ }
Expand description
Repository manifest
This is the root object of the repository, all objects that are active can be reached through the Mainfest.
Implementations
Set the Chunk Settings used by the repository
Gets the default Chunk Settings for the repository
pub async fn commit_archive(
&mut self,
repo: &mut Repository<impl BackendClone>,
archive: ActiveArchive
) -> Result<()>
pub async fn commit_archive(
&mut self,
repo: &mut Repository<impl BackendClone>,
archive: ActiveArchive
) -> Result<()>
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
Returns a copy of the list of archives in this repository
Theses can be converted into full archives with StoredArchive::load
Provides the timestamp of the manifest’s last modification
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Manifest<T> where
<T as Backend>::Manifest: RefUnwindSafe,
impl<T> UnwindSafe for Manifest<T> where
<T as Backend>::Manifest: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more