Struct asuran::repository::backend::common::manifest::ManifestTransaction [−][src]
pub struct ManifestTransaction { /* fields omitted */ }
Expand description
Describes a transaction in a manifest
Implementations
pub fn new(
previous_heads: &[ManifestID],
pointer: ChunkID,
timestamp: DateTime<FixedOffset>,
hmac: HMAC,
key: &Key
) -> ManifestTransaction
pub fn new(
previous_heads: &[ManifestID],
pointer: ChunkID,
timestamp: DateTime<FixedOffset>,
hmac: HMAC,
key: &Key
) -> ManifestTransaction
Constructs a new ManifestTransaction
from the given list of previous heads, a
pointer, a name, a timestamp, and an HMAC method to use
Will automatically produce the random nonce, and update the tag
Returns a refrence to the list of previous heads
Returns the timestamp of the archive
Returns the HMAC value tag of this transaction
Verifies the hmac of the transaction
This does not descend down the DAG, will only verfiy thistransaction.
Returns the version of the asuran
implementation to commit this transaction
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 ManifestTransaction
impl Send for ManifestTransaction
impl Sync for ManifestTransaction
impl Unpin for ManifestTransaction
impl UnwindSafe for ManifestTransaction
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