Struct MemoryPlugin
pub struct MemoryPlugin { /* private fields */ }Expand description
Memory plugin for dynamic loading
Implementations§
§impl MemoryPlugin
impl MemoryPlugin
pub fn new(max_memory: u64) -> MemoryPlugin
pub fn new(max_memory: u64) -> MemoryPlugin
Create a new memory plugin
Trait Implementations§
§impl Debug for MemoryPlugin
impl Debug for MemoryPlugin
§impl NervePlugin for MemoryPlugin
impl NervePlugin for MemoryPlugin
§fn component_type(&self) -> ComponentType
fn component_type(&self) -> ComponentType
Get the component type this plugin provides
§fn initialize(&self, _context: &PluginContext) -> Result<(), NerveError>
fn initialize(&self, _context: &PluginContext) -> Result<(), NerveError>
Initialize the plugin
§fn shutdown(&self) -> Result<(), NerveError>
fn shutdown(&self) -> Result<(), NerveError>
Shutdown the plugin
§fn is_healthy(&self) -> bool
fn is_healthy(&self) -> bool
Check if plugin is healthy
§fn get_statistics(&self) -> SystemStatistics
fn get_statistics(&self) -> SystemStatistics
Get plugin statistics
§fn id(&self) -> ComponentId
fn id(&self) -> ComponentId
Get plugin identifier
Auto Trait Implementations§
impl Freeze for MemoryPlugin
impl RefUnwindSafe for MemoryPlugin
impl Send for MemoryPlugin
impl Sync for MemoryPlugin
impl Unpin for MemoryPlugin
impl UnwindSafe for MemoryPlugin
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