pub struct InAppConfig {
pub broker: Arc<Broadcaster>,
pub store: Arc<dyn DatabaseNotificationStore>,
}Expand description
In-app SSE channel configuration.
Combines a Broadcaster for real-time fanout and a DatabaseNotificationStore
for persistence. Per CONTEXT.md D-08, Channel::InApp dispatches write the DB-store
leg first, then publish to the broadcast channel format!("user.{}", notifiable_id).
Fields§
§broker: Arc<Broadcaster>Broadcaster handle for SSE / WebSocket fanout.
store: Arc<dyn DatabaseNotificationStore>Persistence store — typically the same Arc as NotificationConfig::database_store.
Trait Implementations§
Source§impl Clone for InAppConfig
impl Clone for InAppConfig
Source§fn clone(&self) -> InAppConfig
fn clone(&self) -> InAppConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InAppConfig
impl !RefUnwindSafe for InAppConfig
impl Send for InAppConfig
impl Sync for InAppConfig
impl Unpin for InAppConfig
impl UnsafeUnpin for InAppConfig
impl !UnwindSafe for InAppConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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