Struct tetsy_fetch::client::Abort [−][src]
A handle to abort requests.
Requests are either aborted based on reaching thresholds such as maximum response size, timeouts or too many redirects, or else they can be aborted explicitly by the calling code.
Implementations
impl Abort
[src]
pub fn is_aborted(&self) -> bool
[src]
True if abort
has been invoked.
pub fn max_size(&self) -> usize
[src]
The maximum response body size.
pub fn max_duration(&self) -> Duration
[src]
The maximum total time, including redirects.
pub fn max_redirects(&self) -> usize
[src]
The maximum number of redirects to allow.
pub fn abort(&self)
[src]
Mark as aborted.
pub fn with_max_size(self, n: usize) -> Abort
[src]
Set the maximum reponse body size.
pub fn with_max_duration(self, d: Duration) -> Abort
[src]
Set the maximum duration (including redirects).
pub fn with_max_redirects(self, n: usize) -> Abort
[src]
Set the maximum number of redirects to follow.
Trait Implementations
impl Clone for Abort
[src]
impl Debug for Abort
[src]
impl Default for Abort
[src]
impl From<Arc<AtomicBool>> for Abort
[src]
fn from(a: Arc<AtomicBool>) -> Abort
[src]
Auto Trait Implementations
impl RefUnwindSafe for Abort
impl Send for Abort
impl Sync for Abort
impl Unpin for Abort
impl UnwindSafe for Abort
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,