pub struct PluginCache { /* private fields */ }Expand description
Plugin cache for performance optimization
Implementations§
Source§impl PluginCache
impl PluginCache
Sourcepub fn cache_plugin(
&mut self,
name: &str,
version: Option<&str>,
plugin: &PluginInstance,
)
pub fn cache_plugin( &mut self, name: &str, version: Option<&str>, plugin: &PluginInstance, )
Cache plugin for faster loading
Sourcepub fn get_plugin(
&self,
name: &str,
version: Option<&str>,
) -> Option<&PluginInstance>
pub fn get_plugin( &self, name: &str, version: Option<&str>, ) -> Option<&PluginInstance>
Get cached plugin
Sourcepub fn cache_execution(&mut self, key: &str, result: &str)
pub fn cache_execution(&mut self, key: &str, result: &str)
Cache execution result
Sourcepub fn get_cached_execution(&self, key: &str) -> Option<&String>
pub fn get_cached_execution(&self, key: &str) -> Option<&String>
Get cached execution result
Auto Trait Implementations§
impl Freeze for PluginCache
impl RefUnwindSafe for PluginCache
impl Send for PluginCache
impl Sync for PluginCache
impl Unpin for PluginCache
impl UnwindSafe for PluginCache
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more