pub struct QueuedWorkDriver { /* private fields */ }Implementations§
Source§impl QueuedWorkDriver
impl QueuedWorkDriver
pub fn new(run_handle: Arc<dyn QueuedWorkRunHandle>) -> Self
pub fn with_shutdown_token( run_handle: Arc<dyn QueuedWorkRunHandle>, shutdown: CancellationToken, ) -> Self
pub async fn claim_and_run_pending( &self, session_id: Option<&str>, reason: &str, ) -> Result<(), PluginError>
Sourcepub fn wake_pending(
&self,
session_id: Option<&str>,
reason: &str,
) -> JoinHandle<()>
pub fn wake_pending( &self, session_id: Option<&str>, reason: &str, ) -> JoinHandle<()>
Wake pending work without coupling dispatch success to the durable write that requested it.
The first claim happens on a spawned task so callers can return their durable acceptance receipt immediately. Operational failures are recorded as typed telemetry. Only typed transient failures retry, and both attempts and task lifetime are bounded; the underlying store scheduler remains the idempotency authority.
Trait Implementations§
Source§impl Clone for QueuedWorkDriver
impl Clone for QueuedWorkDriver
Source§fn clone(&self) -> QueuedWorkDriver
fn clone(&self) -> QueuedWorkDriver
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for QueuedWorkDriver
impl !UnwindSafe for QueuedWorkDriver
impl Freeze for QueuedWorkDriver
impl Send for QueuedWorkDriver
impl Sync for QueuedWorkDriver
impl Unpin for QueuedWorkDriver
impl UnsafeUnpin for QueuedWorkDriver
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