pub enum Redirects {
Follow(u32),
Never,
}Expand description
Whether a client follows redirects.
Variants§
Follow(u32)
Follow at most this many, then fail with HttpError::TooManyRedirects.
Never
Deliver each redirect response as the response.
Trait Implementations§
impl Copy for Redirects
impl Eq for Redirects
impl StructuralPartialEq for Redirects
Auto Trait Implementations§
impl Forget for Redirects
impl Freeze for Redirects
impl Move for Redirects
impl RefUnwindSafe for Redirects
impl Send for Redirects
impl Sync for Redirects
impl Unpin for Redirects
impl UnsafeUnpin for Redirects
impl UnwindSafe for Redirects
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