pub struct WsSendRetryOn { /* private fields */ }Expand description
Error categories selected for retrying an untracked message write.
Implementations§
Source§impl WsSendRetryOn
impl WsSendRetryOn
pub fn none() -> Self
Sourcepub fn with_write_errors(self, enabled: bool) -> Self
pub fn with_write_errors(self, enabled: bool) -> Self
Select the common transient transport-write errors.
Sourcepub fn with_errors(self, errors: impl IntoIterator<Item = ErrorKind>) -> Self
pub fn with_errors(self, errors: impl IntoIterator<Item = ErrorKind>) -> Self
Replace error kinds. Cancellation, shutdown, configuration and admission errors remain terminal.
pub fn with_write_timeout(self, enabled: bool) -> Self
pub fn errors(&self) -> &[ErrorKind]
Trait Implementations§
Source§impl Clone for WsSendRetryOn
impl Clone for WsSendRetryOn
Source§impl Debug for WsSendRetryOn
impl Debug for WsSendRetryOn
Source§impl Default for WsSendRetryOn
impl Default for WsSendRetryOn
impl Eq for WsSendRetryOn
Source§impl PartialEq for WsSendRetryOn
impl PartialEq for WsSendRetryOn
impl StructuralPartialEq for WsSendRetryOn
Auto Trait Implementations§
impl Freeze for WsSendRetryOn
impl RefUnwindSafe for WsSendRetryOn
impl Send for WsSendRetryOn
impl Sync for WsSendRetryOn
impl Unpin for WsSendRetryOn
impl UnsafeUnpin for WsSendRetryOn
impl UnwindSafe for WsSendRetryOn
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