pub struct MemoryPlane { /* private fields */ }Implementations§
Source§impl MemoryPlane
impl MemoryPlane
pub fn new() -> Self
pub fn register_core_adapter<A: CoreMemoryAdapter + 'static>( &mut self, adapter: A, )
pub fn register_extension_adapter<A: MemoryExtensionAdapter + 'static>( &mut self, adapter: A, )
pub fn set_default_core_adapter( &mut self, name: &str, ) -> Result<(), MemoryPlaneError>
pub fn default_core_adapter_name(&self) -> Option<&str>
pub async fn execute_core( &self, core_name: Option<&str>, request: MemoryCoreRequest, ) -> Result<MemoryCoreOutcome, MemoryPlaneError>
pub async fn execute_extension( &self, extension_name: &str, core_name: Option<&str>, request: MemoryExtensionRequest, ) -> Result<MemoryExtensionOutcome, MemoryPlaneError>
Trait Implementations§
Source§impl Default for MemoryPlane
impl Default for MemoryPlane
Source§fn default() -> MemoryPlane
fn default() -> MemoryPlane
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryPlane
impl !RefUnwindSafe for MemoryPlane
impl Send for MemoryPlane
impl Sync for MemoryPlane
impl Unpin for MemoryPlane
impl UnsafeUnpin for MemoryPlane
impl !UnwindSafe for MemoryPlane
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