Skip to main content

DynamicMemoryBuilder

Struct DynamicMemoryBuilder 

Source
pub struct DynamicMemoryBuilder<Allocator, Shm: SharedMemory<Allocator>>
where Allocator: Debug + ShmAllocator,
{ /* private fields */ }

Trait Implementations§

Source§

impl<Allocator, Shm: Debug + SharedMemory<Allocator>> Debug for DynamicMemoryBuilder<Allocator, Shm>
where Allocator: Debug + Debug + ShmAllocator,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Allocator: ShmAllocator, Shm: SharedMemory<Allocator>> NamedConceptBuilder<DynamicMemory<Allocator, Shm>> for DynamicMemoryBuilder<Allocator, Shm>
where Shm::Builder: Debug,

Source§

fn new(name: &FileName) -> Self

Defines the name of the newly created NamedConcept.
Source§

fn config(self, config: &Shm::Configuration) -> Self

Sets the custom configuration of the concept.
Source§

impl<Allocator, Shm: SharedMemory<Allocator>> ResizableSharedMemoryBuilder<Allocator, Shm, DynamicMemory<Allocator, Shm>> for DynamicMemoryBuilder<Allocator, Shm>
where Allocator: Debug + ShmAllocator, Shm::Builder: Debug,

Source§

fn max_chunk_layout_hint(self, value: Layout) -> Self

Provides an initial hint to the underlying ShmAllocator on how large the largest chunk will be. If the chunk exceeds the hinted Layout a new SharedMemory segment is acquired to satisfy the memory needs.
Source§

fn max_number_of_chunks_hint(self, value: usize) -> Self

Provides an initial hint to the underlying ShmAllocator on how many chunks at most will be used in parallel. If the number of chunk exceeds the hint a new SharedMemory segment is acquired to satisfy the memory needs.
Source§

fn allocation_strategy(self, value: AllocationStrategy) -> Self

Defines the AllocationStrategy that is pursued when a new SharedMemory segment is acquired.
Source§

fn create( self, ) -> Result<DynamicMemory<Allocator, Shm>, SharedMemoryCreateError>

Creates new SharedMemory. If it already exists the method will fail.

Auto Trait Implementations§

§

impl<Allocator, Shm> !Freeze for DynamicMemoryBuilder<Allocator, Shm>

§

impl<Allocator, Shm> RefUnwindSafe for DynamicMemoryBuilder<Allocator, Shm>

§

impl<Allocator, Shm> Send for DynamicMemoryBuilder<Allocator, Shm>

§

impl<Allocator, Shm> Sync for DynamicMemoryBuilder<Allocator, Shm>

§

impl<Allocator, Shm> Unpin for DynamicMemoryBuilder<Allocator, Shm>

§

impl<Allocator, Shm> UnsafeUnpin for DynamicMemoryBuilder<Allocator, Shm>

§

impl<Allocator, Shm> UnwindSafe for DynamicMemoryBuilder<Allocator, Shm>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.