pub struct BatchStreamMemoryPoolItems { /* private fields */ }Expand description
Creates the buffers of a BatchStreamMemoryPool.
Trait Implementations§
Source§impl IBatchStreamPoolItems<Box<[u8]>> for BatchStreamMemoryPoolItems
impl IBatchStreamPoolItems<Box<[u8]>> for BatchStreamMemoryPoolItems
Source§fn create_item(&self) -> Box<[u8]>
fn create_item(&self) -> Box<[u8]>
Creates a new item; called when the pool has none to hand out.
Source§fn clear_item(&self, _item: &mut T)
fn clear_item(&self, _item: &mut T)
Clears an item that is being returned to the pool.
Source§fn destroy_item(&self, _item: T)
fn destroy_item(&self, _item: T)
Destroys an item the pool does not keep.
Auto Trait Implementations§
impl Freeze for BatchStreamMemoryPoolItems
impl RefUnwindSafe for BatchStreamMemoryPoolItems
impl Send for BatchStreamMemoryPoolItems
impl Sync for BatchStreamMemoryPoolItems
impl Unpin for BatchStreamMemoryPoolItems
impl UnsafeUnpin for BatchStreamMemoryPoolItems
impl UnwindSafe for BatchStreamMemoryPoolItems
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more