pub enum StationError {
NotBuilt,
Subscribe(String),
StreamNotSupported(String),
Core(String),
Io(Error),
}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::NotSupported or WebSocketError::UnsupportedOperation.
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)
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
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
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StationError
impl !RefUnwindSafe for StationError
impl Send for StationError
impl Sync for StationError
impl Unpin for StationError
impl UnsafeUnpin for StationError
impl !UnwindSafe 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
Mutably borrows from an owned value. Read more
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.