pub struct A2aTaskStore { /* private fields */ }Expand description
Task store over a CAS-style KV.
Implementations§
Source§impl A2aTaskStore
impl A2aTaskStore
Sourcepub fn new(kv: Arc<dyn KvStore>, bucket: String) -> Self
pub fn new(kv: Arc<dyn KvStore>, bucket: String) -> Self
Build a new store backed by kv writing under bucket (typical:
DEFAULT_BUCKET).
Sourcepub fn with_event_sink(self, sink: TaskEventSink) -> Self
pub fn with_event_sink(self, sink: TaskEventSink) -> Self
Wire a TaskEventSink so state transitions surface on the
configured pubsub. Returns Self for builder-style chaining.
Sourcepub async fn put(&self, task: &Task) -> Result<(), A2aError>
pub async fn put(&self, task: &Task) -> Result<(), A2aError>
Persist a task and update its context index.
Auto Trait Implementations§
impl !RefUnwindSafe for A2aTaskStore
impl !UnwindSafe for A2aTaskStore
impl Freeze for A2aTaskStore
impl Send for A2aTaskStore
impl Sync for A2aTaskStore
impl Unpin for A2aTaskStore
impl UnsafeUnpin for A2aTaskStore
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