pub struct BufferPool { /* private fields */ }
Expand description
A pool of buffers available for reading concurrent netlink messages without truncation.
Implementations§
Source§impl BufferPool
impl BufferPool
Sourcepub fn acquire(&self) -> BufferPoolGuard<'_>
pub fn acquire(&self) -> BufferPoolGuard<'_>
Acquire a buffer for use.
This method is backed by a semaphore.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BufferPool
impl !RefUnwindSafe for BufferPool
impl Send for BufferPool
impl Sync for BufferPool
impl Unpin for BufferPool
impl UnwindSafe for BufferPool
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