Struct RemoteLimits
pub struct RemoteLimits { /* private fields */ }Expand description
The worker’s LimitBackend in server mode.
Implementations§
Trait Implementations§
§impl Debug for RemoteLimits
impl Debug for RemoteLimits
§impl LimitBackend for RemoteLimits
impl LimitBackend for RemoteLimits
fn define(&self, name: &str, spec: LimitSpec)
§fn acquire_in(
&self,
name: &str,
ticket: u64,
priority: &Priority,
_now_ms: u64,
waker: Option<&Waker>,
) -> Acquire
fn acquire_in( &self, name: &str, ticket: u64, priority: &Priority, _now_ms: u64, waker: Option<&Waker>, ) -> Acquire
Asks for the permit of
ticket, queued at priority the first time
it is asked for. Idempotent: asking again for a granted ticket
answers Granted.§fn waiting(&self, name: &str) -> usize
fn waiting(&self, name: &str) -> usize
Steps waiting for a permit here, where the backend knows (metrics).
Auto Trait Implementations§
impl !Freeze for RemoteLimits
impl !RefUnwindSafe for RemoteLimits
impl !UnwindSafe for RemoteLimits
impl Forget for RemoteLimits
impl Move for RemoteLimits
impl Send for RemoteLimits
impl Sync for RemoteLimits
impl Unpin for RemoteLimits
impl UnsafeUnpin for RemoteLimits
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