pub struct FileId {
pub etag: Option<Arc<str>>,
pub last_modified: Option<Arc<str>>,
}Expand description
File identity used for incremental and resumable downloads.
Combines the ETag and Last-Modified headers into a stable identifier.
Two downloads of the same logical file share a FileId only if neither
header changed, which lets the engine resume instead of re-downloading.
Fields§
§etag: Option<Arc<str>>The ETag header value, if present.
last_modified: Option<Arc<str>>The Last-Modified header value, if present.
Implementations§
Trait Implementations§
impl Eq for FileId
impl StructuralPartialEq for FileId
Auto Trait Implementations§
impl Freeze for FileId
impl RefUnwindSafe for FileId
impl Send for FileId
impl Sync for FileId
impl Unpin for FileId
impl UnsafeUnpin for FileId
impl UnwindSafe for FileId
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