pub struct DownloadJournalRecord { /* private fields */ }Expand description
Maintained v1 local artifact journal bound to a caller-supplied intent digest.
This record neither authenticates that intent nor proves current remote authority.
Implementations§
Source§impl DownloadJournalRecord
impl DownloadJournalRecord
Sourcepub fn resume_view(&self) -> DownloadJournalView
pub fn resume_view(&self) -> DownloadJournalView
Project retained local progress without observing bytes or remote state.
Source§impl DownloadJournalRecord
impl DownloadJournalRecord
Sourcepub fn new(
intent: &str,
requests: Vec<DownloadArtifactRequest>,
) -> Result<Self, DownloadJournalRecordError>
pub fn new( intent: &str, requests: Vec<DownloadArtifactRequest>, ) -> Result<Self, DownloadJournalRecordError>
Admit a nonempty exact physical set before any local transfer completion.
§Errors
Rejects invalid identities/digests, duplicate principals and exceeded count bounds.
Sourcepub fn artifacts(&self) -> &[DownloadArtifactRecord]
pub fn artifacts(&self) -> &[DownloadArtifactRecord]
Read entries in canonical principal-text order.
Trait Implementations§
Source§impl Clone for DownloadJournalRecord
impl Clone for DownloadJournalRecord
Source§impl Debug for DownloadJournalRecord
impl Debug for DownloadJournalRecord
Source§impl<'de> Deserialize<'de> for DownloadJournalRecord
impl<'de> Deserialize<'de> for DownloadJournalRecord
Source§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
impl Eq for DownloadJournalRecord
Source§impl PartialEq for DownloadJournalRecord
impl PartialEq for DownloadJournalRecord
Source§impl Serialize for DownloadJournalRecord
impl Serialize for DownloadJournalRecord
impl StructuralPartialEq for DownloadJournalRecord
Auto Trait Implementations§
impl Freeze for DownloadJournalRecord
impl RefUnwindSafe for DownloadJournalRecord
impl Send for DownloadJournalRecord
impl Sync for DownloadJournalRecord
impl Unpin for DownloadJournalRecord
impl UnsafeUnpin for DownloadJournalRecord
impl UnwindSafe for DownloadJournalRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more