pub struct FastDownPuller { /* private fields */ }Expand description
The default Puller implementation for the fast-down crate.
Wraps an HttpPuller with a SmartRedirectClient, IP rotation,
and proxy support. Cloning creates a new HTTP client with an optionally
rotated local address for multi-interface setups.
Implementations§
Source§impl FastDownPuller
impl FastDownPuller
Sourcepub fn new(option: FastDownPullerOptions<'_>) -> Result<Self, BuildClientError>
pub fn new(option: FastDownPullerOptions<'_>) -> Result<Self, BuildClientError>
§Errors
Returns BuildClientError if the underlying HTTP client cannot be
built (invalid proxy, TLS setup failure, etc.).
Trait Implementations§
Source§impl Clone for FastDownPuller
impl Clone for FastDownPuller
Source§impl Debug for FastDownPuller
impl Debug for FastDownPuller
Source§impl Puller for FastDownPuller
impl Puller for FastDownPuller
Source§type Error = HttpError<SmartRedirectClient>
type Error = HttpError<SmartRedirectClient>
Error produced while pulling.
Source§async fn pull(
&mut self,
range: Option<&ProgressEntry>,
) -> PullResult<impl PullStream<Self::Error>, Self::Error>
async fn pull( &mut self, range: Option<&ProgressEntry>, ) -> PullResult<impl PullStream<Self::Error>, Self::Error>
Pull a (sub)range of the source as a stream of byte chunks. Read more
Auto Trait Implementations§
impl !Freeze for FastDownPuller
impl !RefUnwindSafe for FastDownPuller
impl !UnwindSafe for FastDownPuller
impl Send for FastDownPuller
impl Sync for FastDownPuller
impl Unpin for FastDownPuller
impl UnsafeUnpin for FastDownPuller
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