pub struct InMemoryPushConfigStore { /* private fields */ }Expand description
In-memory PushConfigStore backed by a HashMap.
Implementations§
Source§impl InMemoryPushConfigStore
impl InMemoryPushConfigStore
Sourcepub fn new() -> InMemoryPushConfigStore
pub fn new() -> InMemoryPushConfigStore
Creates a new empty in-memory push config store.
Trait Implementations§
Source§impl Debug for InMemoryPushConfigStore
impl Debug for InMemoryPushConfigStore
Source§impl Default for InMemoryPushConfigStore
impl Default for InMemoryPushConfigStore
Source§fn default() -> InMemoryPushConfigStore
fn default() -> InMemoryPushConfigStore
Returns the “default value” for a type. Read more
Source§impl PushConfigStore for InMemoryPushConfigStore
impl PushConfigStore for InMemoryPushConfigStore
Source§fn set<'a>(
&'a self,
config: TaskPushNotificationConfig,
) -> Pin<Box<dyn Future<Output = Result<TaskPushNotificationConfig, A2aError>> + Send + 'a>>
fn set<'a>( &'a self, config: TaskPushNotificationConfig, ) -> Pin<Box<dyn Future<Output = Result<TaskPushNotificationConfig, A2aError>> + Send + 'a>>
Stores (creates or updates) a push notification config. Read more
Source§fn get<'a>(
&'a self,
task_id: &'a str,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<TaskPushNotificationConfig>, A2aError>> + Send + 'a>>
fn get<'a>( &'a self, task_id: &'a str, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<Option<TaskPushNotificationConfig>, A2aError>> + Send + 'a>>
Retrieves a push notification config by task ID and config ID. Read more
Auto Trait Implementations§
impl !Freeze for InMemoryPushConfigStore
impl !RefUnwindSafe for InMemoryPushConfigStore
impl Send for InMemoryPushConfigStore
impl Sync for InMemoryPushConfigStore
impl Unpin for InMemoryPushConfigStore
impl UnsafeUnpin for InMemoryPushConfigStore
impl UnwindSafe for InMemoryPushConfigStore
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