pub struct RedisQueue { /* private fields */ }Implementations§
Source§impl RedisQueue
impl RedisQueue
pub async fn new(redis_url: &str) -> Result<Self>
Sourcepub async fn pop_scan_job(&self, timeout_secs: u64) -> Result<Option<ScanJob>>
pub async fn pop_scan_job(&self, timeout_secs: u64) -> Result<Option<ScanJob>>
Pop a scan job from the queue (blocking with timeout)
Sourcepub async fn update_scan_status(
&self,
scan_id: String,
status: String,
) -> Result<()>
pub async fn update_scan_status( &self, scan_id: String, status: String, ) -> Result<()>
Update scan status
Sourcepub async fn publish_progress(&self, progress: &ScanProgress) -> Result<()>
pub async fn publish_progress(&self, progress: &ScanProgress) -> Result<()>
Publish scan progress
Sourcepub async fn store_scan_results(
&self,
scan_id: String,
results: &ScanResults,
) -> Result<()>
pub async fn store_scan_results( &self, scan_id: String, results: &ScanResults, ) -> Result<()>
Store scan results
Trait Implementations§
Source§impl Clone for RedisQueue
impl Clone for RedisQueue
Source§fn clone(&self) -> RedisQueue
fn clone(&self) -> RedisQueue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RedisQueue
impl !RefUnwindSafe for RedisQueue
impl Send for RedisQueue
impl Sync for RedisQueue
impl Unpin for RedisQueue
impl UnsafeUnpin for RedisQueue
impl !UnwindSafe for RedisQueue
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