#[non_exhaustive]pub enum ConnectorError {
Show 13 variants
Config(ConfigError),
Server(ServerError),
Value(ValueError),
Transport(TransportError),
Token(TokenError),
Fix(FixError),
Timeout(Duration),
OutcomeUnknown(Interruption),
SessionEnded(SessionEnded),
Closed,
Lagged {
skipped: u64,
},
Incomplete {
from: Timestamp,
to: Timestamp,
},
UnexpectedResponse {
expected: u32,
received: u32,
},
}Expand description
Any failure reported by this library.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Config(ConfigError)
The configuration was rejected.
Server(ServerError)
The server refused a request.
Value(ValueError)
An identifier, a price or a volume was rejected.
Transport(TransportError)
The connection failed below the level of protocol messages.
Token(TokenError)
A token refresh failed.
Fix(FixError)
A FIX message was rejected, by this library or by the server.
Timeout(Duration)
The server did not answer a request in time.
OutcomeUnknown(Interruption)
A request that must not be sent twice was sent, and the connection failed or the time allowed ran out before the server answered: the server may or may not have acted on it.
SessionEnded(SessionEnded)
The server ended the authorisation of the session the request belongs to.
Closed
The connection is shut down and accepts no further requests.
Lagged
A reader of the events of the connection fell behind and events were dropped unread.
Incomplete
The server announced more historical data than it sent and the rest cannot be asked for, so data between the two moments, both included, is missing.
Fields
UnexpectedResponse
The server answered with a message of another type than the request calls for.
Trait Implementations§
Source§impl Clone for ConnectorError
impl Clone for ConnectorError
Source§impl Debug for ConnectorError
impl Debug for ConnectorError
Source§impl Display for ConnectorError
impl Display for ConnectorError
impl Eq for ConnectorError
Source§impl Error for ConnectorError
impl Error for ConnectorError
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()