pub struct BufProtected<T>(Arc<RwLock<T>>);
Tuple Fields§
§0: Arc<RwLock<T>>
Trait Implementations§
source§impl<T> Clone for BufProtected<T>
impl<T> Clone for BufProtected<T>
source§impl<T> Debug for BufProtected<T>
impl<T> Debug for BufProtected<T>
Auto Trait Implementations§
impl<T> Freeze for BufProtected<T>
impl<T> !RefUnwindSafe for BufProtected<T>
impl<T> Send for BufProtected<T>
impl<T> Sync for BufProtected<T>
impl<T> Unpin for BufProtected<T>
impl<T> !UnwindSafe for BufProtected<T>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)