pub struct LiveIntel { /* private fields */ }Expand description
The server’s live view of the local database: re-reads the small install record per call and reloads the set only when the sequence moved, so an import goes live without a restart.
Implementations§
Source§impl LiveIntel
impl LiveIntel
pub fn new(db: LocalIntelDb, rule: StalenessRule) -> Self
pub fn rule(&self) -> StalenessRule
Sourcepub fn current(
&self,
now: DateTime<Utc>,
) -> Result<(Arc<AdvisoryDb>, IntelEvidence)>
pub fn current( &self, now: DateTime<Utc>, ) -> Result<(Arc<AdvisoryDb>, IntelEvidence)>
The current database and its evidence at now.
Auto Trait Implementations§
impl !Freeze for LiveIntel
impl RefUnwindSafe for LiveIntel
impl Send for LiveIntel
impl Sync for LiveIntel
impl Unpin for LiveIntel
impl UnsafeUnpin for LiveIntel
impl UnwindSafe for LiveIntel
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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