pub struct InterceptDepth(/* private fields */);Expand description
How deep the interceptors of one field or map are running inside each other, counted on each thread by itself.
The limit is there for an interceptor that writes back into what it guards, which is one thread calling itself. Writers on two threads at once are not nested, and counting them together refuses the eleventh writer of a busy map for a recursion nobody made.
Trait Implementations§
Source§impl Clone for InterceptDepth
impl Clone for InterceptDepth
Source§impl Debug for InterceptDepth
impl Debug for InterceptDepth
Auto Trait Implementations§
impl Freeze for InterceptDepth
impl RefUnwindSafe for InterceptDepth
impl Send for InterceptDepth
impl Sync for InterceptDepth
impl Unpin for InterceptDepth
impl UnsafeUnpin for InterceptDepth
impl UnwindSafe for InterceptDepth
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