pub struct DeclaredQueues { /* private fields */ }Expand description
The queues one catalog read positively found, with the stored identities that same read could not decode.
A positive find is a fact regardless of what the read missed. An ABSENCE is
only a fact when Self::covers_every_entry holds.
Implementations§
Source§impl DeclaredQueues
impl DeclaredQueues
Sourcepub fn new(
declared: BTreeSet<String>,
undecodable_identities: Vec<String>,
) -> Self
pub fn new( declared: BTreeSet<String>, undecodable_identities: Vec<String>, ) -> Self
Records one read: the queues found, and the stored identities that could not be decoded — empty exactly when the read covered every entry.
Sourcepub fn declares(&self, task_queue: &str) -> bool
pub fn declares(&self, task_queue: &str) -> bool
Whether a decoded contract declares task_queue.
Sourcepub fn covers_every_entry(&self) -> bool
pub fn covers_every_entry(&self) -> bool
Whether every retained entry decoded — the only condition under which this read’s absences carry information.
Sourcepub fn undecodable_identities(&self) -> &[String]
pub fn undecodable_identities(&self) -> &[String]
The stored identities this read could not decode, in catalog order.
Sourcepub fn found_no_declaration(&self) -> bool
pub fn found_no_declaration(&self) -> bool
Whether the read found no queue declaration at all. Such a catalog contradicts nothing, whether or not the read was complete.
Trait Implementations§
Source§impl Clone for DeclaredQueues
impl Clone for DeclaredQueues
Source§fn clone(&self) -> DeclaredQueues
fn clone(&self) -> DeclaredQueues
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 DeclaredQueues
impl Debug for DeclaredQueues
Source§impl Default for DeclaredQueues
impl Default for DeclaredQueues
Source§fn default() -> DeclaredQueues
fn default() -> DeclaredQueues
Returns the “default value” for a type. Read more
impl Eq for DeclaredQueues
Source§impl PartialEq for DeclaredQueues
impl PartialEq for DeclaredQueues
impl StructuralPartialEq for DeclaredQueues
Auto Trait Implementations§
impl Freeze for DeclaredQueues
impl RefUnwindSafe for DeclaredQueues
impl Send for DeclaredQueues
impl Sync for DeclaredQueues
impl Unpin for DeclaredQueues
impl UnsafeUnpin for DeclaredQueues
impl UnwindSafe for DeclaredQueues
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.