pub struct BinaryDownloadConfig { /* private fields */ }Expand description
HTTP and memory limits for crate::api::BinaryTask.
The configuration belongs to a crate::api::MeowConfig and is only used
when the first binary task initializes its isolated executor.
Implementations§
Source§impl BinaryDownloadConfig
impl BinaryDownloadConfig
Sourcepub fn builder() -> BinaryDownloadConfigBuilder
pub fn builder() -> BinaryDownloadConfigBuilder
Starts a builder from the safe defaults.
Sourcepub fn max_body_bytes(&self) -> u64
pub fn max_body_bytes(&self) -> u64
Maximum response body size in bytes.
Sourcepub fn request_timeout(&self) -> Option<Duration>
pub fn request_timeout(&self) -> Option<Duration>
Optional per-attempt timeout. None inherits MeowConfig::http_timeout.
Sourcepub fn tcp_keepalive(&self) -> Option<Duration>
pub fn tcp_keepalive(&self) -> Option<Duration>
Optional TCP keepalive. None inherits MeowConfig::tcp_keepalive.
Sourcepub fn redirect_limit(&self) -> usize
pub fn redirect_limit(&self) -> usize
Maximum number of redirects followed by one request.
Sourcepub fn retry_delays(&self) -> &[Duration]
pub fn retry_delays(&self) -> &[Duration]
Delay before each retry. An empty slice disables retries.
Trait Implementations§
Source§impl Clone for BinaryDownloadConfig
impl Clone for BinaryDownloadConfig
Source§fn clone(&self) -> BinaryDownloadConfig
fn clone(&self) -> BinaryDownloadConfig
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 moreSource§impl Debug for BinaryDownloadConfig
impl Debug for BinaryDownloadConfig
Source§impl Default for BinaryDownloadConfig
impl Default for BinaryDownloadConfig
impl Eq for BinaryDownloadConfig
Source§impl PartialEq for BinaryDownloadConfig
impl PartialEq for BinaryDownloadConfig
impl StructuralPartialEq for BinaryDownloadConfig
Auto Trait Implementations§
impl Freeze for BinaryDownloadConfig
impl RefUnwindSafe for BinaryDownloadConfig
impl Send for BinaryDownloadConfig
impl Sync for BinaryDownloadConfig
impl Unpin for BinaryDownloadConfig
impl UnsafeUnpin for BinaryDownloadConfig
impl UnwindSafe for BinaryDownloadConfig
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