Skip to main content

DynamicView

Struct DynamicView 

Source
pub struct DynamicView<Allocator: ShmAllocator, Shm: SharedMemory<Allocator>> { /* private fields */ }

Trait Implementations§

Source§

impl<Allocator: ShmAllocator, Shm: SharedMemory<Allocator>> Abandonable for DynamicView<Allocator, Shm>

Source§

unsafe fn abandon_in_place(this: NonNull<Self>)

Abandon a resource in place. Shall be used when a struct of multiple resources shall be abandoned and the resources cannot be moved out of the struct. Read more
Source§

fn abandon(self)

Source§

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

Source§

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

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

impl<Allocator: ShmAllocator, Shm: SharedMemory<Allocator>> ResizableSharedMemoryView<Allocator, Shm> for DynamicView<Allocator, Shm>
where Shm::Builder: Debug,

Source§

unsafe fn register_and_translate_offset( &self, offset: PointerOffset, ) -> Result<*const u8, SharedMemoryOpenError>

Registers a received PointerOffset at the ResizableSharedMemoryView and returns the absolut pointer to the data. If the segment of the received PointerOffset was not yet mapped into the processes space, it will be opened and mapped. If this fails a SharedMemoryOpenError is returned. Read more
Source§

unsafe fn unregister_offset(&self, offset: PointerOffset)

Unregisters a received PointerOffset that was previously registered. Read more
Source§

fn number_of_active_segments(&self) -> usize

Returns the number of active SharedMemory segments.
Source§

impl<Allocator: ShmAllocator, Shm: SharedMemory<Allocator>> ResizableSharedMemoryViewBuilder<Allocator, Shm, DynamicMemory<Allocator, Shm>, DynamicView<Allocator, Shm>> for DynamicViewBuilder<Allocator, Shm>
where Shm::Builder: Debug,

Source§

fn timeout(self, value: Duration) -> Self

The timeout defines how long the SharedMemoryBuilder should wait for SharedMemoryBuilder::create() to finialize the initialization. This is required when the SharedMemory is created and initialized concurrently from another process. By default it is set to Duration::ZERO for no timeout.
Source§

fn open( self, access_mode: AccessMode, ) -> Result<DynamicView<Allocator, Shm>, SharedMemoryOpenError>

Opens already existing SharedMemory. If it does not exist or the initialization is not yet finished the method will fail.

Auto Trait Implementations§

§

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

§

impl<Allocator, Shm> !RefUnwindSafe for DynamicView<Allocator, Shm>

§

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

§

impl<Allocator, Shm> !Sync for DynamicView<Allocator, Shm>

§

impl<Allocator, Shm> Unpin for DynamicView<Allocator, Shm>
where Shm: Unpin, <Shm as NamedConceptMgmt>::Configuration: Unpin, Allocator: Unpin,

§

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

§

impl<Allocator, Shm> UnwindSafe for DynamicView<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.