Enum grafix_toolbox::uses::Sync::sync::TryLockError 1.0.0[−][src]
pub enum TryLockError<T> {
Poisoned(PoisonError<T>),
WouldBlock,
}Expand description
Variants
Poisoned(PoisonError<T>)The lock could not be acquired because another thread failed while holding the lock.
The lock could not be acquired at this time because the operation would otherwise block.
Trait Implementations
use the Display impl or to_string()
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for TryLockError<T> where
T: RefUnwindSafe, impl<T> Send for TryLockError<T> where
T: Send, impl<T> Sync for TryLockError<T> where
T: Sync, impl<T> Unpin for TryLockError<T> where
T: Unpin, impl<T> UnwindSafe for TryLockError<T> where
T: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> boolChecks if self is actually part of its subset T (and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SSUse with care! Same as self.to_subset but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SPThe inclusion map: converts self to the equivalent element of its superset.
pub fn vzip(self) -> V