pub struct InMemoryFunctionStore { /* private fields */ }Expand description
In-memory function store backed by a HashMap behind a Mutex.
Thread-safe via an Arc<Mutex<...>> interior; suitable for unit tests
and local development scenarios that do not require persistence.
Implementations§
Trait Implementations§
Source§impl Clone for InMemoryFunctionStore
impl Clone for InMemoryFunctionStore
Source§fn clone(&self) -> InMemoryFunctionStore
fn clone(&self) -> InMemoryFunctionStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemoryFunctionStore
impl Debug for InMemoryFunctionStore
Source§impl Default for InMemoryFunctionStore
impl Default for InMemoryFunctionStore
Source§impl FunctionStore for InMemoryFunctionStore
impl FunctionStore for InMemoryFunctionStore
Source§fn store_function<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
runtime: RuntimeType,
bytecode: Bytes,
) -> Pin<Box<dyn Future<Output = Result<FunctionRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn store_function<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
runtime: RuntimeType,
bytecode: Bytes,
) -> Pin<Box<dyn Future<Output = Result<FunctionRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Store a new version of a function, bumping its version number. Read more
Source§fn get_function<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<FunctionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_function<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<FunctionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieve the latest active version of a function by name. Read more
Auto Trait Implementations§
impl Freeze for InMemoryFunctionStore
impl RefUnwindSafe for InMemoryFunctionStore
impl Send for InMemoryFunctionStore
impl Sync for InMemoryFunctionStore
impl Unpin for InMemoryFunctionStore
impl UnsafeUnpin for InMemoryFunctionStore
impl UnwindSafe for InMemoryFunctionStore
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