pub struct NoOpPushNotificationSender;Available on crate features
a2a-v1 and server only.Expand description
No-op push notification sender for development and testing.
All delivery attempts succeed immediately without sending any HTTP requests.
Trait Implementations§
Source§impl PushNotificationSender for NoOpPushNotificationSender
impl PushNotificationSender for NoOpPushNotificationSender
Source§fn send_status_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_url: &'life1 str,
_event: &'life2 TaskStatusUpdateEvent,
_config: &'life3 TaskPushNotificationConfig,
) -> Pin<Box<dyn Future<Output = Result<(), A2aError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
NoOpPushNotificationSender: 'async_trait,
fn send_status_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_url: &'life1 str,
_event: &'life2 TaskStatusUpdateEvent,
_config: &'life3 TaskPushNotificationConfig,
) -> Pin<Box<dyn Future<Output = Result<(), A2aError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
NoOpPushNotificationSender: 'async_trait,
Delivers a task status update to the configured webhook.
Source§fn send_artifact_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_url: &'life1 str,
_event: &'life2 TaskArtifactUpdateEvent,
_config: &'life3 TaskPushNotificationConfig,
) -> Pin<Box<dyn Future<Output = Result<(), A2aError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
NoOpPushNotificationSender: 'async_trait,
fn send_artifact_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_url: &'life1 str,
_event: &'life2 TaskArtifactUpdateEvent,
_config: &'life3 TaskPushNotificationConfig,
) -> Pin<Box<dyn Future<Output = Result<(), A2aError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
NoOpPushNotificationSender: 'async_trait,
Delivers a task artifact update to the configured webhook.
Auto Trait Implementations§
impl Freeze for NoOpPushNotificationSender
impl RefUnwindSafe for NoOpPushNotificationSender
impl Send for NoOpPushNotificationSender
impl Sync for NoOpPushNotificationSender
impl Unpin for NoOpPushNotificationSender
impl UnsafeUnpin for NoOpPushNotificationSender
impl UnwindSafe for NoOpPushNotificationSender
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