pub struct RequestJoin {
pub request_ids: Vec<UUID4>,
pub start: Option<DateTime<Utc>>,
pub end: Option<DateTime<Utc>>,
pub request_id: UUID4,
pub ts_init: UnixNanos,
pub params: Option<Params>,
pub correlation_id: Option<UUID4>,
}Expand description
A request to join multiple in-flight data requests under a single parent response.
The engine first issues a combined date-range request to bound the join window,
then fans out the leg responses through the request-pipeline machinery so the
caller receives one consolidated DataResponse keyed by the join request_id.
Fields§
§request_ids: Vec<UUID4>§start: Option<DateTime<Utc>>§end: Option<DateTime<Utc>>§request_id: UUID4§ts_init: UnixNanos§params: Option<Params>§correlation_id: Option<UUID4>Implementations§
Source§impl RequestJoin
impl RequestJoin
Sourcepub fn new(
request_ids: Vec<UUID4>,
start: Option<DateTime<Utc>>,
end: Option<DateTime<Utc>>,
request_id: UUID4,
ts_init: UnixNanos,
params: Option<Params>,
correlation_id: Option<UUID4>,
) -> Self
pub fn new( request_ids: Vec<UUID4>, start: Option<DateTime<Utc>>, end: Option<DateTime<Utc>>, request_id: UUID4, ts_init: UnixNanos, params: Option<Params>, correlation_id: Option<UUID4>, ) -> Self
Sourcepub fn with_dates(
&self,
start: Option<DateTime<Utc>>,
end: Option<DateTime<Utc>>,
ts_init: UnixNanos,
) -> Self
pub fn with_dates( &self, start: Option<DateTime<Utc>>, end: Option<DateTime<Utc>>, ts_init: UnixNanos, ) -> Self
Returns a fresh RequestJoin for the combined date-range bootstrap leg.
The returned request inherits request_ids and params, carries the
supplied dates, and sets correlation_id to the original request id so
the response can be matched back to the parent join.
Trait Implementations§
Source§impl Clone for RequestJoin
impl Clone for RequestJoin
Source§fn clone(&self) -> RequestJoin
fn clone(&self) -> RequestJoin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestJoin
impl Debug for RequestJoin
Source§impl<'de> Deserialize<'de> for RequestJoin
impl<'de> Deserialize<'de> for RequestJoin
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RequestJoin
impl RefUnwindSafe for RequestJoin
impl Send for RequestJoin
impl Sync for RequestJoin
impl Unpin for RequestJoin
impl UnsafeUnpin for RequestJoin
impl UnwindSafe for RequestJoin
Blanket Implementations§
impl<T> Allocation for T
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