pub struct CoreRefCell<T>(/* private fields */);
Trait Implementations§
Source§impl<T> AnyLock<T> for CoreRefCell<T>
impl<T> AnyLock<T> for CoreRefCell<T>
Source§fn new(inner: T) -> Self
fn new(inner: T) -> Self
Create a new lock std::sync::Mutex
type ReadGuard<'a> = Ref<'a, T> where T: 'a, Self: 'a
type WriteGuard<'a> = RefMut<'a, T> where T: 'a, Self: 'a
fn read<'a>(&'a self) -> Self::ReadGuard<'a>
fn write<'a>(&'a self) -> Self::WriteGuard<'a>
fn async_read<'a>( &'a self, ) -> Pin<Box<dyn Future<Output = Self::ReadGuard<'a>> + 'a>>
fn async_write<'a>( &'a self, ) -> Pin<Box<dyn Future<Output = Self::WriteGuard<'a>> + 'a>>
Auto Trait Implementations§
impl<T> !Freeze for CoreRefCell<T>
impl<T> !RefUnwindSafe for CoreRefCell<T>
impl<T> Send for CoreRefCell<T>where
T: Send,
impl<T> !Sync for CoreRefCell<T>
impl<T> Unpin for CoreRefCell<T>where
T: Unpin,
impl<T> UnwindSafe for CoreRefCell<T>where
T: UnwindSafe,
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