[−][src]Struct asuran::manifest::Manifest
Repository manifest
This is the root object of the repository, all objects that are active can be reached through the Mainfest.
Methods
impl<T: BackendClone> Manifest<T>
[src]
pub fn load(repo: &Repository<T>) -> Manifest<T> where
T: Backend,
[src]
T: Backend,
pub async fn set_chunk_settings<'_>(
&'_ mut self,
settings: ChunkSettings
) -> Result<()>
[src]
&'_ mut self,
settings: ChunkSettings
) -> Result<()>
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]
&'_ 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
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]
T::Manifest: Clone,
impl<T: Debug + Backend> Debug for Manifest<T> where
T::Manifest: Debug,
[src]
T::Manifest: Debug,
impl<'de, T: Backend> Deserialize<'de> for Manifest<T> where
T::Manifest: Deserialize<'de>,
[src]
T::Manifest: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: Backend> Serialize for Manifest<T> where
T::Manifest: Serialize,
[src]
T::Manifest: Serialize,
Auto Trait Implementations
impl<T> RefUnwindSafe for Manifest<T> where
<T as Backend>::Manifest: RefUnwindSafe,
<T as Backend>::Manifest: RefUnwindSafe,
impl<T> Send for Manifest<T> where
<T as Backend>::Manifest: Send,
<T as Backend>::Manifest: Send,
impl<T> Sync for Manifest<T> where
<T as Backend>::Manifest: Sync,
<T as Backend>::Manifest: Sync,
impl<T> Unpin for Manifest<T> where
<T as Backend>::Manifest: Unpin,
<T as Backend>::Manifest: Unpin,
impl<T> UnwindSafe for Manifest<T> where
<T as Backend>::Manifest: UnwindSafe,
<T as Backend>::Manifest: UnwindSafe,
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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,