MemoryShared

Trait MemoryShared 

Source
pub trait MemoryShared:
    Memory
    + Send
    + Sync
    + 'static { }
Expand description

Provides memory for byte sequences in a thread-safe manner.

This is a narrowing of Memory that adds additional constraints that enable thread-safe shared access to the memory provider. If you do not need these extra constraints, just use Memory directly.

Implementors§

Source§

impl<T> MemoryShared for T
where T: Memory + Send + Sync + 'static,