pub struct UserQuotaTracker { /* private fields */ }
Expand description
Track the active tasks being run for a user in a queue with an age-out policy
Implementations§
Source§impl UserQuotaTracker
impl UserQuotaTracker
Sourcepub fn set_timeout(self, timeout: Duration) -> Self
pub fn set_timeout(self, timeout: Duration) -> Self
Set the time before a task started by a user will age out if not ended normally.
Trait Implementations§
Source§impl Clone for UserQuotaTracker
impl Clone for UserQuotaTracker
Source§fn clone(&self) -> UserQuotaTracker
fn clone(&self) -> UserQuotaTracker
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 UserQuotaTracker
impl !RefUnwindSafe for UserQuotaTracker
impl Send for UserQuotaTracker
impl Sync for UserQuotaTracker
impl Unpin for UserQuotaTracker
impl !UnwindSafe for UserQuotaTracker
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