pub struct WsRequestRetryOn { /* private fields */ }Expand description
Error categories selected for a logical request, in addition to its business classifier.
Implementations§
Source§impl WsRequestRetryOn
impl WsRequestRetryOn
pub fn none() -> Self
pub fn with_write_errors(self, enabled: bool) -> Self
pub fn with_errors(self, errors: impl IntoIterator<Item = ErrorKind>) -> Self
pub fn with_write_timeout(self, enabled: bool) -> Self
pub fn with_response_timeout(self, enabled: bool) -> Self
Sourcepub fn with_attempt_timeout(self, enabled: bool) -> Self
pub fn with_attempt_timeout(self, enabled: bool) -> Self
Enable retry only for the whole-attempt budget, independently of write/response timeouts.
Trait Implementations§
Source§impl Clone for WsRequestRetryOn
impl Clone for WsRequestRetryOn
Source§impl Debug for WsRequestRetryOn
impl Debug for WsRequestRetryOn
Source§impl Default for WsRequestRetryOn
impl Default for WsRequestRetryOn
impl Eq for WsRequestRetryOn
Source§impl PartialEq for WsRequestRetryOn
impl PartialEq for WsRequestRetryOn
impl StructuralPartialEq for WsRequestRetryOn
Auto Trait Implementations§
impl Freeze for WsRequestRetryOn
impl RefUnwindSafe for WsRequestRetryOn
impl Send for WsRequestRetryOn
impl Sync for WsRequestRetryOn
impl Unpin for WsRequestRetryOn
impl UnsafeUnpin for WsRequestRetryOn
impl UnwindSafe for WsRequestRetryOn
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