pub struct WebhookEventSink { /* private fields */ }Expand description
EventSink implementation that writes one webhook_deliveries row per
matching tenant_webhooks subscription. Bound to a single tenant.
The sink does not perform HTTP. Outbound delivery is the
WebhookWorker’s responsibility (Task 5); this type’s contract is to
transactionally fan-out into the durable outbox. Any failure is logged
at warn and dropped — EventSink::emit returns () so the auth
operation that produced the event is never blocked or rolled back by
a webhook bookkeeping issue.
Implementations§
Source§impl WebhookEventSink
impl WebhookEventSink
pub fn new(control_pool: SqlitePool, tenant_id: TenantId) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WebhookEventSink
impl !UnwindSafe for WebhookEventSink
impl Freeze for WebhookEventSink
impl Send for WebhookEventSink
impl Sync for WebhookEventSink
impl Unpin for WebhookEventSink
impl UnsafeUnpin for WebhookEventSink
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more