pub struct WorkloopDueProbe {
pub next_check_at: Option<DateTime<Utc>>,
}Expand description
The one field the due sweep filters on, decodable WITHOUT validating the whole record: a thousand sleeping loops must cost the sweeper a comparison each, not a full spec re-validation each (the R13.3 measurement is what caught the difference — ~20µs per full decode versus nanoseconds per comparison).
Fields§
§next_check_at: Option<DateTime<Utc>>Mirror of WorkloopRecord::next_check_at.
Implementations§
Source§impl WorkloopDueProbe
impl WorkloopDueProbe
Sourcepub fn decode(bytes: &[u8]) -> Result<Self, StoreError>
pub fn decode(bytes: &[u8]) -> Result<Self, StoreError>
Probe-decode just the due instant from stored workloop bytes.
§Errors
Returns StoreError::Serialization for bytes that are not a JSON
object carrying the field — a poisoned row, which the sweep skips and
the listing surfaces.
Trait Implementations§
Source§impl Clone for WorkloopDueProbe
impl Clone for WorkloopDueProbe
Source§fn clone(&self) -> WorkloopDueProbe
fn clone(&self) -> WorkloopDueProbe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WorkloopDueProbe
Source§impl Debug for WorkloopDueProbe
impl Debug for WorkloopDueProbe
Source§impl<'de> Deserialize<'de> for WorkloopDueProbe
impl<'de> Deserialize<'de> for WorkloopDueProbe
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
Auto Trait Implementations§
impl Freeze for WorkloopDueProbe
impl RefUnwindSafe for WorkloopDueProbe
impl Send for WorkloopDueProbe
impl Sync for WorkloopDueProbe
impl Unpin for WorkloopDueProbe
impl UnsafeUnpin for WorkloopDueProbe
impl UnwindSafe for WorkloopDueProbe
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