#[non_exhaustive]pub enum StatusPolicy {
Classify,
Accept,
}Expand description
How a backend treats error statuses.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Classify
4xx and 5xx responses become errors, so the crawler retries or
fails them without a handler having to check:
Accept
Every response is returned, whatever its status.
Implementations§
Trait Implementations§
Source§impl Clone for StatusPolicy
impl Clone for StatusPolicy
impl Copy for StatusPolicy
Source§impl Debug for StatusPolicy
impl Debug for StatusPolicy
Source§impl Default for StatusPolicy
impl Default for StatusPolicy
impl Eq for StatusPolicy
Source§impl PartialEq for StatusPolicy
impl PartialEq for StatusPolicy
impl StructuralPartialEq for StatusPolicy
Auto Trait Implementations§
impl Freeze for StatusPolicy
impl RefUnwindSafe for StatusPolicy
impl Send for StatusPolicy
impl Sync for StatusPolicy
impl Unpin for StatusPolicy
impl UnsafeUnpin for StatusPolicy
impl UnwindSafe for StatusPolicy
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