Struct tokio::sync::TryLockError [−][src]
pub struct TryLockError(_);
This is supported on crate feature
sync
only.Expand description
Error returned from the Mutex::try_lock
, RwLock::try_read
and
RwLock::try_write
functions.
Mutex::try_lock
operation will only fail if the mutex is already locked.
RwLock::try_read
operation will only fail if the lock is currently held
by an exclusive writer.
RwLock::try_write
operation will if lock is held by any reader or by an
exclusive writer.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TryLockError
impl Send for TryLockError
impl Sync for TryLockError
impl Unpin for TryLockError
impl UnwindSafe for TryLockError