pub struct ScanHandle {
pub id: String,
/* private fields */
}Expand description
A handle to a queued scan operation.
Fields§
§id: StringUnique identifier for this scan.
Implementations§
Source§impl ScanHandle
impl ScanHandle
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Returns true if the scan is complete.
Sourcepub fn is_pending(&self) -> bool
pub fn is_pending(&self) -> bool
Returns true if the scan is still pending.
Sourcepub fn is_in_progress(&self) -> bool
pub fn is_in_progress(&self) -> bool
Returns true if the scan is in progress.
Sourcepub async fn wait(self) -> Result<ScanReport, ScanError>
pub async fn wait(self) -> Result<ScanReport, ScanError>
Waits for the scan to complete and returns the result.
Trait Implementations§
Source§impl Clone for ScanHandle
impl Clone for ScanHandle
Auto Trait Implementations§
impl Freeze for ScanHandle
impl RefUnwindSafe for ScanHandle
impl Send for ScanHandle
impl Sync for ScanHandle
impl Unpin for ScanHandle
impl UnsafeUnpin for ScanHandle
impl UnwindSafe for ScanHandle
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