pub struct HttpReadRuntime {
pub sleep: Arc<dyn Sleep>,
pub spawner: Arc<dyn Spawner>,
}Expand description
Runtime services required to retain read settlement after cancellation.
Native adapters use tasks; Worker adapters must use the request’s
wait_until lifetime. A spawner must run accepted work to completion.
Fields§
§sleep: Arc<dyn Sleep>Timer used to stop transmission even while the source is pending.
spawner: Arc<dyn Spawner>Retains settlement independently of the response body’s lifetime.
Trait Implementations§
Source§impl Clone for HttpReadRuntime
impl Clone for HttpReadRuntime
Auto Trait Implementations§
impl !RefUnwindSafe for HttpReadRuntime
impl !UnwindSafe for HttpReadRuntime
impl Freeze for HttpReadRuntime
impl Send for HttpReadRuntime
impl Sync for HttpReadRuntime
impl Unpin for HttpReadRuntime
impl UnsafeUnpin for HttpReadRuntime
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