pub enum IdentifierRequest {
Observe(u64),
Reserve {
minimum: u64,
maximum: u64,
count: NonZeroU64,
},
}Expand description
Observe an externally supplied identity or reserve a contiguous range. Namespace keys must include the allocation domain and the owning object’s non-reused generation, rather than its reusable name.
Variants§
Implementations§
Source§impl IdentifierRequest
impl IdentifierRequest
Sourcepub fn prepare(
self,
current: Option<u64>,
) -> VersionResult<IdentifierAllocation>
pub fn prepare( self, current: Option<u64>, ) -> VersionResult<IdentifierAllocation>
Compute the next state while the provider holds exclusive physical admission. Neither observation nor reservation ever lowers an existing watermark; exhaustion leaves it unchanged.
Sourcepub fn reserve_workspace(
self,
namespace: &[u8],
control: &StorageReadControl,
) -> VersionResult<MemoryReservation>
pub fn reserve_workspace( self, namespace: &[u8], control: &StorageReadControl, ) -> VersionResult<MemoryReservation>
Validate a request before physical admission and charge the provider’s key binding/copy workspace. No identifier is consumed if this fails.
Trait Implementations§
Source§impl Clone for IdentifierRequest
impl Clone for IdentifierRequest
impl Copy for IdentifierRequest
Auto Trait Implementations§
impl Freeze for IdentifierRequest
impl RefUnwindSafe for IdentifierRequest
impl Send for IdentifierRequest
impl Sync for IdentifierRequest
impl Unpin for IdentifierRequest
impl UnsafeUnpin for IdentifierRequest
impl UnwindSafe for IdentifierRequest
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