pub struct RetryContext {
pub transport: Arc<Transport>,
pub adapter: ProtocolAdapter,
pub current_url: Option<String>,
pub on_adapter_changed: Box<dyn Fn(&ProtocolAdapter) + Send + Sync>,
}Expand description
Mutable context threaded through retry attempts.
Fields§
§transport: Arc<Transport>§adapter: ProtocolAdapter§current_url: Option<String>§on_adapter_changed: Box<dyn Fn(&ProtocolAdapter) + Send + Sync>Auto Trait Implementations§
impl !Freeze for RetryContext
impl !RefUnwindSafe for RetryContext
impl Send for RetryContext
impl Sync for RetryContext
impl Unpin for RetryContext
impl UnsafeUnpin for RetryContext
impl !UnwindSafe for RetryContext
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