pub struct SubscribeReport {
pub handle: SubscriptionHandle,
pub ok: Vec<SeriesKey>,
pub failed: Vec<FailedStream>,
}Expand description
Outcome of crate::Station::subscribe in continue-on-error mode.
handle always exists and carries events for every stream in ok.
failed is a per-stream list of subscribes that did not produce a
live forwarder. The most common entry there is
StationError::StreamNotSupported — the venue genuinely does not
expose the requested stream on the WS wire. Other errors (transport,
REST, symbol normalize) also land here so the consumer can log them
without aborting the whole subscribe batch.
failed is empty on success — callers that want fail-fast semantics
can simply if !report.failed.is_empty() { return Err(...) }.
Fields§
§handle: SubscriptionHandle§ok: Vec<SeriesKey>§failed: Vec<FailedStream>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SubscribeReport
impl !UnwindSafe for SubscribeReport
impl Freeze for SubscribeReport
impl Send for SubscribeReport
impl Sync for SubscribeReport
impl Unpin for SubscribeReport
impl UnsafeUnpin for SubscribeReport
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