pub struct ListenState {
pub version: u32,
pub watermark: String,
pub last_modified: Option<String>,
pub seen: BTreeMap<String, String>,
pub items: BTreeMap<i64, Watched>,
pub pending: BTreeMap<i64, Pending>,
}Expand description
Everything the listener keeps between ticks and between runs, in
.spar/state/listen.json.
Fields§
§version: u32§watermark: StringThreads updated after this are new. RFC 3339, the shape GitHub takes.
last_modified: Option<String>Last-Modified of the last poll that answered, sent back as
If-Modified-Since so a poll that finds nothing costs nothing.
seen: BTreeMap<String, String>Thread id to the updated_at it was last seen with, so one thread
returned twice is one event.
items: BTreeMap<i64, Watched>§pending: BTreeMap<i64, Pending>Trait Implementations§
Source§impl Clone for ListenState
impl Clone for ListenState
Source§impl Debug for ListenState
impl Debug for ListenState
Source§impl Default for ListenState
impl Default for ListenState
Source§impl<'de> Deserialize<'de> for ListenState
impl<'de> Deserialize<'de> for ListenState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ListenState
Source§impl PartialEq for ListenState
impl PartialEq for ListenState
Source§impl Serialize for ListenState
impl Serialize for ListenState
impl StructuralPartialEq for ListenState
Auto Trait Implementations§
impl Freeze for ListenState
impl RefUnwindSafe for ListenState
impl Send for ListenState
impl Sync for ListenState
impl Unpin for ListenState
impl UnsafeUnpin for ListenState
impl UnwindSafe for ListenState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.