pub struct DiscoveryQueue { /* private fields */ }Expand description
The pending-discovery queue and durable outcome state.
Implementations§
Source§impl DiscoveryQueue
impl DiscoveryQueue
Sourcepub fn insert(&mut self, discovery: Discovery) -> bool
pub fn insert(&mut self, discovery: Discovery) -> bool
Record a discovery unless this exact key already has a terminal outcome.
pub fn drain(&mut self) -> Vec<Discovery>
pub fn iter(&self) -> impl Iterator<Item = &Discovery> + '_
pub fn is_empty(&self) -> bool
pub fn pending_len(&self) -> usize
pub fn mark_lifted(&mut self, key: DiscoveryKey)
pub fn mark_failed(&mut self, key: DiscoveryKey, reason: impl Into<String>)
pub fn mark_skipped(&mut self, key: DiscoveryKey, reason: impl Into<String>)
pub fn state(&self, key: &DiscoveryKey) -> Option<&DiscoveryState>
pub fn states( &self, ) -> impl Iterator<Item = (&DiscoveryKey, &DiscoveryState)> + '_
Sourcepub fn lifted_seeds(&self) -> Vec<CodeSeed>
pub fn lifted_seeds(&self) -> Vec<CodeSeed>
Every code address this queue lifted successfully, as a portable
CodeSeed. Exported from one analysis run and replayed into the next
(via Context::seed_code) so the
lifter reaches jump-table targets in its first pass instead of waiting for
the analysis fixpoint to discover them round by round.
Trait Implementations§
Source§impl Clone for DiscoveryQueue
impl Clone for DiscoveryQueue
Source§fn clone(&self) -> DiscoveryQueue
fn clone(&self) -> DiscoveryQueue
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 moreSource§impl Debug for DiscoveryQueue
impl Debug for DiscoveryQueue
Source§impl Default for DiscoveryQueue
impl Default for DiscoveryQueue
Source§fn default() -> DiscoveryQueue
fn default() -> DiscoveryQueue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiscoveryQueue
impl<'de> Deserialize<'de> for DiscoveryQueue
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 DiscoveryQueue
impl RefUnwindSafe for DiscoveryQueue
impl Send for DiscoveryQueue
impl Sync for DiscoveryQueue
impl Unpin for DiscoveryQueue
impl UnsafeUnpin for DiscoveryQueue
impl UnwindSafe for DiscoveryQueue
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