Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Feature Flags

The following feature flags are supported by this crate:

FeatureDescription
syncSupport for sync-safe mode of operation
asyncSupport for async mode of operation
tokio-backendSelects the Tokio backend for async mode. A no-op without the async feature.
async-lock-backendSelects the async-lock backend for async mode. A no-op without the async feature.
async-tokioCombines async and tokio-backend features.
async-lockCombines async and async-lock-backend features.
clonable-lockEnables the clonable lock wrapper type.
send_guardSee corresponding feature of the parking_lot crate
serdeEnable support for serde marshalling.
diagnosticsEnable additional diagnostics for compile time errors. Experimental, requires Rust nightly toolset.

Warning

The tokio-backend and async-lock-backend features are mutually exclusive. You can only use one of them at a time or FieldX will produce a compile-time error.