pub trait TryGuarded<T>: Guarded<T>where
T: ?Sized,{
type Error<'a>: Debug
where Self: 'a;
// Required method
fn try_get<'a>(&'a self) -> Result<Self::Guard<'a>, Self::Error<'a>>;
}Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<T> TryGuarded<T> for RefCell<T>
Available on crate feature std only.
impl<T> TryGuarded<T> for RefCell<T>
Available on crate feature
std only.Source§impl<T> TryGuarded<T> for Mutex<T>
Available on crate feature std only.
impl<T> TryGuarded<T> for Mutex<T>
Available on crate feature
std only.Source§impl<T> TryGuarded<T> for RwLock<T>
Available on crate feature std only.
impl<T> TryGuarded<T> for RwLock<T>
Available on crate feature
std only.