pub struct InMemoryLeaseProvider { /* private fields */ }Expand description
In-memory lease provider for single-runtime deployments (Phase 1). Distributes 256 dispatch slots evenly across N dispatchers.
Implementations§
Trait Implementations§
Source§impl LeaseProvider for InMemoryLeaseProvider
impl LeaseProvider for InMemoryLeaseProvider
Source§fn acquire_slots<'life0, 'async_trait>(
&'life0 self,
caller_id: u64,
) -> Pin<Box<dyn Future<Output = Vec<u8>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn acquire_slots<'life0, 'async_trait>(
&'life0 self,
caller_id: u64,
) -> Pin<Box<dyn Future<Output = Vec<u8>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the dispatch slots assigned to this caller.
On first call, assigns slots. On subsequent calls, returns cached assignment.
Auto Trait Implementations§
impl !Freeze for InMemoryLeaseProvider
impl !RefUnwindSafe for InMemoryLeaseProvider
impl Send for InMemoryLeaseProvider
impl Sync for InMemoryLeaseProvider
impl Unpin for InMemoryLeaseProvider
impl UnsafeUnpin for InMemoryLeaseProvider
impl UnwindSafe for InMemoryLeaseProvider
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