#[non_exhaustive]pub struct ReleaseAdmissionArgs {
pub quota_policy_id: QuotaPolicyId,
pub execution_id: ExecutionId,
}Expand description
Args for crate::engine_backend::EngineBackend::release_admission.
Called when issue_claim_grant fails after admission was recorded,
to prevent leaked concurrency slots. Semantics are idempotent: a
release against an already-released slot is a no-op (matches the
Valkey Lua body’s DEL-is-idempotent + DECR-if-positive discipline).
FF #511 Phase 1 extended this with quota_policy_id so PG/SQLite
bodies can locate the admission row without reverse-mapping from
the execution. Valkey still derives its quota key from the
{p:N} partition tag + quota id.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.quota_policy_id: QuotaPolicyIdThe quota policy whose admission slot should be released.
execution_id: ExecutionIdThe execution whose slot was admitted.
Implementations§
Source§impl ReleaseAdmissionArgs
impl ReleaseAdmissionArgs
pub fn new(quota_policy_id: QuotaPolicyId, execution_id: ExecutionId) -> Self
Trait Implementations§
Source§impl Clone for ReleaseAdmissionArgs
impl Clone for ReleaseAdmissionArgs
Source§fn clone(&self) -> ReleaseAdmissionArgs
fn clone(&self) -> ReleaseAdmissionArgs
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 moreSource§impl Debug for ReleaseAdmissionArgs
impl Debug for ReleaseAdmissionArgs
Source§impl<'de> Deserialize<'de> for ReleaseAdmissionArgs
impl<'de> Deserialize<'de> for ReleaseAdmissionArgs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ReleaseAdmissionArgs
impl RefUnwindSafe for ReleaseAdmissionArgs
impl Send for ReleaseAdmissionArgs
impl Sync for ReleaseAdmissionArgs
impl Unpin for ReleaseAdmissionArgs
impl UnsafeUnpin for ReleaseAdmissionArgs
impl UnwindSafe for ReleaseAdmissionArgs
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