pub struct InMemoryEventSubscriptionService { /* private fields */ }Expand description
In-memory event subscription service backed by DashMap.
Webhook delivery is logged but not actually performed (no HTTP client).
Enable the webhook-delivery feature for real HTTP delivery.
Implementations§
Trait Implementations§
Source§impl EventSubscriptionService for InMemoryEventSubscriptionService
impl EventSubscriptionService for InMemoryEventSubscriptionService
Source§fn create<'life0, 'async_trait>(
&'life0 self,
subscription: EventSubscription,
) -> Pin<Box<dyn Future<Output = Result<Uuid, AwpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait>(
&'life0 self,
subscription: EventSubscription,
) -> Pin<Box<dyn Future<Output = Result<Uuid, AwpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a new subscription, returning its ID.
Source§fn get<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<EventSubscription>, AwpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<EventSubscription>, AwpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a subscription by ID.
Source§fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<EventSubscription>, AwpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<EventSubscription>, AwpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all subscriptions.
Auto Trait Implementations§
impl Freeze for InMemoryEventSubscriptionService
impl !RefUnwindSafe for InMemoryEventSubscriptionService
impl Send for InMemoryEventSubscriptionService
impl Sync for InMemoryEventSubscriptionService
impl Unpin for InMemoryEventSubscriptionService
impl UnsafeUnpin for InMemoryEventSubscriptionService
impl UnwindSafe for InMemoryEventSubscriptionService
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