pub struct DownloadSink { /* private fields */ }Expand description
Where a backend writes the downloaded response body.
Child processes (or a std::io::PipeReader) stream bytes into this sink from a worker thread
via DownloadSink::spawn_stdout_drain. If the stream begins with the gzip magic bytes,
bytes are piped through gzip -dc while copying (streaming decompress).
Implementations§
Trait Implementations§
Source§impl Clone for DownloadSink
impl Clone for DownloadSink
Source§fn clone(&self) -> DownloadSink
fn clone(&self) -> DownloadSink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DownloadSink
impl RefUnwindSafe for DownloadSink
impl Send for DownloadSink
impl Sync for DownloadSink
impl Unpin for DownloadSink
impl UnsafeUnpin for DownloadSink
impl UnwindSafe for DownloadSink
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