pub enum Error {
EventAnswerUnkownStatus {
status: i8,
},
NoContent {
from: &'static str,
},
SerdeJson(Error),
Reqwest(Error),
DimOutOfRange {
shape: Shape,
dim: i32,
},
EventsOutdated {
new_ts: String,
},
KeyExpired,
InformationLost,
}Variants§
EventAnswerUnkownStatus
NoContent
SerdeJson(Error)
Reqwest(Error)
DimOutOfRange
EventsOutdated
The event history has become outdated or has been partially lost. This can occur if the client fails to
poll the server in a timely manner, causing a gap in the event sequence. The client should continue polling
with the new ts value provided. This is not a critical error but indicates that some events might have been missed.
KeyExpired
The session key used for the Long Poll connection has expired. This requires obtaining a new session key by
calling the groups.getLongPollServer method again. Expired keys are common and expected to happen from time
to time; they simply indicate that the connection to the Long Poll server needs to be refreshed.
InformationLost
All session information has been lost, necessitating the initiation of a new Long Poll session. This error typically indicates that the server and key information are no longer valid, possibly due to a significant lapse in polling or server-side changes. Start a new session by re-fetching the server, key, and ‘ts’ values.