pub enum StationError {
NotBuilt,
Subscribe(String),
StreamNotSupported(String),
Core(String),
Io(Error),
RewarmUnsupported(String),
}Variants§
NotBuilt
Subscribe(String)
StreamNotSupported(String)
The exchange does not expose this stream on the WS wire. Subscribe
MUST NOT spawn a forwarder for this combination — heal/resub would
loop forever. Surfaced from subscribe_frame returning either
WebSocketError::WireAbsent or WebSocketError::NotImplemented.
Consumers should treat this as a quiet “skip” rather than a hard
failure: it’s an architectural fact about the venue, not a runtime fault.
Core(String)
Io(Error)
RewarmUnsupported(String)
Station::rewarm_derived was asked to deepen a SeriesKey.kind
whose fold state cannot be reconstructed from the already-emitted
output alone (tick/volume imbalance bars and run bars carry EMA
state accumulated over the ENTIRE history — there is no
seed-from-output for that). Callers must fall back to the old
teardown + resubscribe-at-depth path for these three kinds.
Implementations§
Source§impl StationError
impl StationError
Sourcepub fn is_not_supported(&self) -> bool
pub fn is_not_supported(&self) -> bool
True when this error originates from the venue not exposing the
requested stream (wire-not-present), as opposed to a transient
runtime failure. Used by Station::subscribe(set) to bucket
per-stream outcomes in the returned SubscribeReport.
Trait Implementations§
Source§impl Debug for StationError
impl Debug for StationError
Source§impl Display for StationError
impl Display for StationError
Source§impl Error for StationError
impl Error for StationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for StationError
impl From<Error> for StationError
Source§impl From<StationError> for QuotaError
impl From<StationError> for QuotaError
Source§fn from(source: StationError) -> Self
fn from(source: StationError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for StationError
impl !UnwindSafe for StationError
impl Freeze for StationError
impl Send for StationError
impl Sync for StationError
impl Unpin for StationError
impl UnsafeUnpin for StationError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.