pub struct Reader<T> { /* private fields */ }Expand description
Dropping the Reader isn’t realtime safe, because if dropped after the Writer, it deallocates. Should only get dropped, when closing the real-time thread
Reader will be able to read data even if Writer has been dropped. Obviously that data won’t change anymore When there is no Reader the Writer is able to create a new one. The other way around doesn’t work.
Isn’t Sync as there is no methos that takes &self, so it is useless anyways.
Implementations§
Trait Implementations§
impl<T: Send> Send for Reader<T>
SAFETY: Owns a T
Auto Trait Implementations§
impl<T> Freeze for Reader<T>
impl<T> !RefUnwindSafe for Reader<T>
impl<T> !Sync for Reader<T>
impl<T> Unpin for Reader<T>where
T: Unpin,
impl<T> !UnwindSafe for Reader<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