Something went wrong. Try again.
Live STIB-MIVB departures on the Pebble Time 2. It covers the bus, tram, and metro network of Brussels
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445pub struct RawFeed { pub provider: &'static str, pub feed: &'static str, pub scope: Box<str>, pub captured_at: chrono::DateTime<chrono::Utc>, pub source_at: Option<chrono::DateTime<chrono::Utc>>, pub content_type: Box<str>, pub body: Vec<u8>,}
#[derive(Clone, Copy, Debug, Eq, PartialEq)]pub enum FeedStage { Provider, Parse, Commit,}
impl FeedStage { pub(crate) fn as_str(self) -> &'static str { match self { Self::Provider => "provider", Self::Parse => "parse", Self::Commit => "commit", } }}
#[derive(Debug)]pub struct FeedFailure { pub stage: FeedStage, pub source: anyhow::Error,}
impl std::fmt::Display for FeedFailure { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "{:?}: {:#}", self.stage, self.source) }}
impl std::error::Error for FeedFailure { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { Some(self.source.as_ref()) }}