pub struct CircularBufferPtr<'a> { /* private fields */ }Expand description
The guard returned by CircularBuffer::alloc. While this guard is being hold, the allocated memory is not allowed to be evicted. This means that you may block the evicting thread if you hold this guard for too long.
The lock will be released once the guard is dropped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CircularBufferPtr<'a>
impl<'a> RefUnwindSafe for CircularBufferPtr<'a>
impl<'a> !Send for CircularBufferPtr<'a>
impl<'a> !Sync for CircularBufferPtr<'a>
impl<'a> Unpin for CircularBufferPtr<'a>
impl<'a> UnsafeUnpin for CircularBufferPtr<'a>
impl<'a> UnwindSafe for CircularBufferPtr<'a>
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