AsyncMutexState
Transfers initialized permit/payload before publication.
Module std.sync
import std.sync;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
pub init(mut Gate: Semaphore, mut Value: T)
pub init(mut Gate: Semaphore, mut Value: T)Transfers initialized permit/payload before publication. Gate: Owned one-permit semaphore. Value: Owned protected payload.
pub init(Source: readonly Self&) = delete;
pub init(Source: readonly Self&) = delete;Rejects duplicating payload/permit authority. Source: Existing state.
pub init(Source: mut Self&&)
pub init(Source: mut Self&&)Transfers unpublished state and recomputes its new payload address. Source: Transferred state left without permit authority.
Gate
pub readonly fn Gate() -> readonly Semaphore&Borrows private permit protocol while retained state is live. Return: Readonly semaphore reference bounded by this retained state lifetime.
BorrowValue
pub readonly fn BorrowValue() -> mut T&Authorizes private interior payload access only under an acquired guard. Return: Writable payload reference expiring at guard release.
TakeValue
pub fn TakeValue() -> TRecovers uninserted input after shared allocation fails. Return: Owned input; failed state remains destructible.