pub struct PosixShmProviderBackendTalc { /* private fields */ }Expand description
A talc backend based on POSIX shared memory.
This API has been marked as unstable: it works as advertised, but it may be changed in a future release.
This is the default general-purpose backend shipped with Zenoh.
Talc allocator provides great performnce (2nd after `buddy_system_allocator`) while maintaining
excellent fragmentation resistance and memory utilization efficiency.Implementations§
Source§impl PosixShmProviderBackendTalc
impl PosixShmProviderBackendTalc
Sourcepub fn builder<Layout>(
layout: Layout,
) -> PosixShmProviderBackendTalcBuilder<Layout>
pub fn builder<Layout>( layout: Layout, ) -> PosixShmProviderBackendTalcBuilder<Layout>
Get the builder to construct a new instance
This API has been marked as unstable: it works as advertised, but it may be changed in a future release.
Trait Implementations§
Source§impl ShmProviderBackend for PosixShmProviderBackendTalc
impl ShmProviderBackend for PosixShmProviderBackendTalc
Source§fn alloc(&self, layout: &MemoryLayout) -> ChunkAllocResult
fn alloc(&self, layout: &MemoryLayout) -> ChunkAllocResult
Allocate the chunk of desired size. Read more
Source§fn free(&self, chunk: &ChunkDescriptor)
fn free(&self, chunk: &ChunkDescriptor)
Deallocate the chunk. Read more
Source§fn defragment(&self) -> usize
fn defragment(&self) -> usize
Defragment the memory. Read more
Source§fn layout_for(&self, layout: MemoryLayout) -> Result<MemoryLayout, ZLayoutError>
fn layout_for(&self, layout: MemoryLayout) -> Result<MemoryLayout, ZLayoutError>
Check and calculate suitable layout for layout. Read more
Source§impl WithProtocolID for PosixShmProviderBackendTalc
impl WithProtocolID for PosixShmProviderBackendTalc
fn id(&self) -> ProtocolID
Auto Trait Implementations§
impl !Freeze for PosixShmProviderBackendTalc
impl RefUnwindSafe for PosixShmProviderBackendTalc
impl Send for PosixShmProviderBackendTalc
impl Sync for PosixShmProviderBackendTalc
impl Unpin for PosixShmProviderBackendTalc
impl UnwindSafe for PosixShmProviderBackendTalc
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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