#[non_exhaustive]pub struct ReadHeldByOwner;Expand description
Why a ReentrantRwLock::write failed: its owner reads without
writing, so the write would wait for a read only that owner can end.
Release the reads first, or take the write before reading.
Trait Implementations§
Source§impl Clone for ReadHeldByOwner
impl Clone for ReadHeldByOwner
Source§fn clone(&self) -> ReadHeldByOwner
fn clone(&self) -> ReadHeldByOwner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReadHeldByOwner
Source§impl Debug for ReadHeldByOwner
impl Debug for ReadHeldByOwner
Source§impl Display for ReadHeldByOwner
impl Display for ReadHeldByOwner
impl Eq for ReadHeldByOwner
Source§impl Error for ReadHeldByOwner
impl Error for ReadHeldByOwner
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ReadHeldByOwner
impl PartialEq for ReadHeldByOwner
impl StructuralPartialEq for ReadHeldByOwner
Auto Trait Implementations§
impl Freeze for ReadHeldByOwner
impl RefUnwindSafe for ReadHeldByOwner
impl Send for ReadHeldByOwner
impl Sync for ReadHeldByOwner
impl Unpin for ReadHeldByOwner
impl UnsafeUnpin for ReadHeldByOwner
impl UnwindSafe for ReadHeldByOwner
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