pub struct ScanTask { /* private fields */ }Expand description
Versioned task snapshot.
Implementations§
Source§impl ScanTask
impl ScanTask
pub fn task_id(&self) -> &str
pub fn scan_id(&self) -> &str
pub fn target_ref(&self) -> &str
pub fn phases(&self) -> &[u8] ⓘ
pub fn status(&self) -> TaskStatus
pub fn priority(&self) -> TaskPriority
pub fn created_at(&self) -> u64
pub fn started_at(&self) -> Option<u64>
pub fn completed_at(&self) -> Option<u64>
pub fn retry_count(&self) -> u32
pub fn attempt(&self) -> u32
pub fn task_generation(&self) -> u64
pub fn record_version(&self) -> u64
pub fn assigned_to(&self) -> Option<&str>
pub fn lease(&self) -> Option<&TaskLease>
pub fn ownership(&self) -> Option<TaskOwnership>
pub fn age_secs(&self, now_secs: u64) -> u64
Trait Implementations§
impl Eq for ScanTask
impl StructuralPartialEq for ScanTask
Auto Trait Implementations§
impl Freeze for ScanTask
impl RefUnwindSafe for ScanTask
impl Send for ScanTask
impl Sync for ScanTask
impl Unpin for ScanTask
impl UnsafeUnpin for ScanTask
impl UnwindSafe for ScanTask
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more