pub struct ArcThreadCheckedMutexKind;Available on crate feature
kinds only.Expand description
The container kind corresponding to
Arc<ThreadCheckedMutex<T>> as a container for T.
Trait Implementations§
Source§impl ArcThreadCheckedMutexLike for ArcThreadCheckedMutexKind
impl ArcThreadCheckedMutexLike for ArcThreadCheckedMutexKind
Source§type Container<T: ?Sized + Send> = Arc<ThreadCheckedMutex<T>>
type Container<T: ?Sized + Send> = Arc<ThreadCheckedMutex<T>>
An
Arc<ThreadCheckedMutex<T>>-like container typeSource§impl CheckedRcRefCellLike for ArcThreadCheckedMutexKind
impl CheckedRcRefCellLike for ArcThreadCheckedMutexKind
Source§type Container<T: ?Sized> = Arc<ThreadCheckedMutex<T>>
type Container<T: ?Sized> = Arc<ThreadCheckedMutex<T>>
A
CheckedRcRefCell<T>-like container typeSource§impl Clone for ArcThreadCheckedMutexKind
impl Clone for ArcThreadCheckedMutexKind
Source§fn clone(&self) -> ArcThreadCheckedMutexKind
fn clone(&self) -> ArcThreadCheckedMutexKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArcThreadCheckedMutexKind
impl Debug for ArcThreadCheckedMutexKind
Source§impl Default for ArcThreadCheckedMutexKind
impl Default for ArcThreadCheckedMutexKind
Source§fn default() -> ArcThreadCheckedMutexKind
fn default() -> ArcThreadCheckedMutexKind
Returns the “default value” for a type. Read more
impl Copy for ArcThreadCheckedMutexKind
Auto Trait Implementations§
impl Freeze for ArcThreadCheckedMutexKind
impl RefUnwindSafe for ArcThreadCheckedMutexKind
impl Send for ArcThreadCheckedMutexKind
impl Sync for ArcThreadCheckedMutexKind
impl Unpin for ArcThreadCheckedMutexKind
impl UnwindSafe for ArcThreadCheckedMutexKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FragileContainer<T> for Twhere
T: ?Sized,
impl<T> FragileContainer<T> for Twhere
T: ?Sized,
Source§fn get_ref(&self) -> <T as FragileTryContainer<T>>::Ref<'_>
fn get_ref(&self) -> <T as FragileTryContainer<T>>::Ref<'_>
Infallibly get immutable access to the T.
Source§impl<T> FragileMutContainer<T> for Twhere
T: ?Sized,
impl<T> FragileMutContainer<T> for Twhere
T: ?Sized,
Source§fn get_mut(&mut self) -> <T as FragileTryMutContainer<T>>::RefMut<'_>
fn get_mut(&mut self) -> <T as FragileTryMutContainer<T>>::RefMut<'_>
Infallibly get mutable access to the T.
Source§impl<T> FragileTryContainer<T> for Twhere
T: ?Sized,
impl<T> FragileTryContainer<T> for Twhere
T: ?Sized,
Source§fn into_inner(self) -> Option<T>
fn into_inner(self) -> Option<T>
Infallibly get the T.
Source§fn try_get_ref(
&self,
) -> Result<<T as FragileTryContainer<T>>::Ref<'_>, <T as FragileTryContainer<T>>::RefError>
fn try_get_ref( &self, ) -> Result<<T as FragileTryContainer<T>>::Ref<'_>, <T as FragileTryContainer<T>>::RefError>
Infallibly get immutable access to the T.
Source§type RefError = Infallible
type RefError = Infallible
An error that might be returned by
try_get_ref. This type should implement
std::error::Error. Read moreSource§fn new_container(t: T) -> T
fn new_container(t: T) -> T
Create a new container that owns the provided
T.Source§impl<T> FragileTryMutContainer<T> for Twhere
T: ?Sized,
impl<T> FragileTryMutContainer<T> for Twhere
T: ?Sized,
Source§fn try_get_mut(
&mut self,
) -> Result<<T as FragileTryMutContainer<T>>::RefMut<'_>, <T as FragileTryMutContainer<T>>::RefMutError>
fn try_get_mut( &mut self, ) -> Result<<T as FragileTryMutContainer<T>>::RefMut<'_>, <T as FragileTryMutContainer<T>>::RefMutError>
Infallibly get mutable access to the T.
Source§type RefMut<'a> = &'a mut T
where
T: 'a
type RefMut<'a> = &'a mut T where T: 'a
A mutably borrowed value from the container. Read more
Source§type RefMutError = Infallible
type RefMutError = Infallible
An error that might be returned by
try_get_mut. This type should implement
std::error::Error. Read more