// SPDX-License-Identifier: MIT OR Apache-2.0
/// Error returned when a lock cannot be immediately acquired.
///
/// This error is returned by [`Mutex::try_lock`](crate::Mutex::try_lock) when the mutex is already
/// locked by another thread.
///
/// # Examples
///
/// ```
/// use wasm_safe_mutex::{Mutex, NotAvailable};
///
/// let mutex = Mutex::new(42);
/// let _guard = mutex.lock_sync();
///
/// // Try to lock while already locked
/// match mutex.try_lock() {
/// Ok(_) => panic!("Should not succeed"),
/// Err(NotAvailable) => println!("Lock is held by another thread"),
/// }
/// ```
;