pub struct HttpDownstream {
pub pending: Mutex<HashMap<String, Sender<String>>>,
pub broadcast: Sender<String>,
}Expand description
Shared state between the HTTP server and the relay core.
Fields§
§pending: Mutex<HashMap<String, Sender<String>>>Responses the HTTP layer is waiting on, keyed by canonical id.
broadcast: Sender<String>Frames with no waiting POST (server-initiated traffic) fan out to every open GET SSE stream.
Implementations§
Auto Trait Implementations§
impl !Freeze for HttpDownstream
impl !RefUnwindSafe for HttpDownstream
impl !UnwindSafe for HttpDownstream
impl Send for HttpDownstream
impl Sync for HttpDownstream
impl Unpin for HttpDownstream
impl UnsafeUnpin for HttpDownstream
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