Acquired in rustc_data_structures::jobserver - Rust (original) (raw)
pub struct Acquired {
pub(crate) client: Arc<Client>,
pub(crate) data: Acquired,
pub(crate) disabled: bool,
}Expand description
An acquired token from a jobserver.
This token will be released back to the jobserver when it is dropped and otherwise represents the ability to spawn off another thread of work.
This drops the Acquired token without releasing the associated token.
This is not generally useful, but can be helpful if you do not have the ability to store an Acquired token but need to not yet release it.
You’ll typically want to follow this up with a call toClient::release_raw or similar to actually release the token later on.
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes