Struct llm_weaver::storage::TapestryChest
source · pub struct TapestryChest;
Expand description
Default implementation of Config::TapestryChest
Storing and retrieving data using a Redis instance.
Trait Implementations§
source§impl<T: Config> TapestryChestHandler<T> for TapestryChest
impl<T: Config> TapestryChestHandler<T> for TapestryChest
§type Error = StorageError
type Error = StorageError
Defines the error type returned by the handler methods.
source§fn save_tapestry_fragment<'async_trait, TID>(
tapestry_id: TID,
tapestry_fragment: TapestryFragment<T>,
increment: bool
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
TID: 'async_trait + TapestryId,
fn save_tapestry_fragment<'async_trait, TID>( tapestry_id: TID, tapestry_fragment: TapestryFragment<T>, increment: bool ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where TID: 'async_trait + TapestryId,
Saves a tapestry fragment. Read more
source§fn save_tapestry_metadata<'async_trait, TID, M>(
tapestry_id: TID,
metadata: M
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
TID: 'async_trait + TapestryId,
M: 'async_trait + ToRedisArgs + Send + Sync,
fn save_tapestry_metadata<'async_trait, TID, M>( tapestry_id: TID, metadata: M ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where TID: 'async_trait + TapestryId, M: 'async_trait + ToRedisArgs + Send + Sync,
Save tapestry metadata. Read more
source§fn get_tapestry_fragment<'async_trait, TID>(
tapestry_id: TID,
instance: Option<u64>
) -> Pin<Box<dyn Future<Output = Result<Option<TapestryFragment<T>>>> + Send + 'async_trait>>where
TID: 'async_trait + TapestryId,
fn get_tapestry_fragment<'async_trait, TID>( tapestry_id: TID, instance: Option<u64> ) -> Pin<Box<dyn Future<Output = Result<Option<TapestryFragment<T>>>> + Send + 'async_trait>>where TID: 'async_trait + TapestryId,
Retrieves the last tapestry fragment, or a fragment at a specified instance. Read more
source§fn get_tapestry_metadata<'async_trait, TID, M>(
tapestry_id: TID,
instance: Option<u64>
) -> Pin<Box<dyn Future<Output = Result<Option<M>>> + Send + 'async_trait>>where
TID: 'async_trait + TapestryId,
M: 'async_trait + DeserializeOwned + Default,
fn get_tapestry_metadata<'async_trait, TID, M>( tapestry_id: TID, instance: Option<u64> ) -> Pin<Box<dyn Future<Output = Result<Option<M>>> + Send + 'async_trait>>where TID: 'async_trait + TapestryId, M: 'async_trait + DeserializeOwned + Default,
Retrieves the last tapestry metadata, or a metadata at a specified instance.
Auto Trait Implementations§
impl RefUnwindSafe for TapestryChest
impl Send for TapestryChest
impl Sync for TapestryChest
impl Unpin for TapestryChest
impl UnwindSafe for TapestryChest
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