#[non_exhaustive]pub struct StreamedDownload {
pub bytes_written: u64,
pub content_type: Option<String>,
pub content_encoding: Option<String>,
pub etag: Option<String>,
pub strong_etag: bool,
pub final_url: String,
pub integrity: IntegrityReport,
}Expand description
What a streamed download reports. The bytes went to the sink.
Experimental.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bytes_written: u64Number of decoded bytes written to the sink.
content_type: Option<String>Response Content-Type.
content_encoding: Option<String>HTTP content coding that was removed, when one was declared.
etag: Option<String>ETag as received. This is not a checksum.
strong_etag: boolWhether the tag is strong. A weak tag is not byte-identity proof.
final_url: StringFinal URL after redirects.
integrity: IntegrityReportChecksum report over the decoded bytes. IntegrityOutcome::Verified
is integrity of those bytes, not publisher authenticity.
IntegrityOutcome::NotDeclared means nothing was checked.
Trait Implementations§
Source§impl Clone for StreamedDownload
impl Clone for StreamedDownload
Source§impl Debug for StreamedDownload
impl Debug for StreamedDownload
impl Eq for StreamedDownload
Source§impl PartialEq for StreamedDownload
impl PartialEq for StreamedDownload
impl StructuralPartialEq for StreamedDownload
Auto Trait Implementations§
impl Forget for StreamedDownload
impl Freeze for StreamedDownload
impl RefUnwindSafe for StreamedDownload
impl Send for StreamedDownload
impl Sync for StreamedDownload
impl Unpin for StreamedDownload
impl UnsafeUnpin for StreamedDownload
impl UnwindSafe for StreamedDownload
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