Struct asuran::manifest::archive::StoredArchive [−][src]
pub struct StoredArchive {
pub id: ChunkID,
pub timestamp: DateTime<FixedOffset>,
}
Expand description
A ‘heavy’ pointer to a an Archive
in a repository.
Contains the ChunkID
of the chunk the Archive
is serialized in, as well as
its date of creation.
Currently also contains the name of the Archive
, but adding this was a mistake
as it leaks information that should not be leaked, so it will be removed soon.
Fields
id: ChunkID
Pointer the the archive metadata in the repository
timestamp: DateTime<FixedOffset>
Time the archive was started it
Used to prevent replay attackts
Implementations
pub async fn load(
&self,
repo: &mut Repository<impl BackendClone>
) -> Result<ActiveArchive, ArchiveError>
pub async fn load(
&self,
repo: &mut Repository<impl BackendClone>
) -> Result<ActiveArchive, ArchiveError>
Loads the archive metadata from the repository and unpacks it for use
Returns the timestamp of the archive
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
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for StoredArchive
impl Send for StoredArchive
impl Sync for StoredArchive
impl Unpin for StoredArchive
impl UnwindSafe for StoredArchive
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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