pub struct SubscriptionConfig {Show 15 fields
pub max_retries: u32,
pub retry_initial_delay: Duration,
pub retry_max_delay: Duration,
pub retry_backoff_factor: f64,
pub handshake_initial_delay: Duration,
pub handshake_max_attempts: u32,
pub handshake_retry_initial_delay: Duration,
pub handshake_retry_max_delay: Duration,
pub heartbeat_check_interval: Duration,
pub error_threshold: u32,
pub off_threshold: u32,
pub supported_channel_types: Vec<String>,
pub ws_token_lifetime_secs: i64,
pub smtp: Option<SmtpSettings>,
pub messaging: Option<MessagingSettings>,
}Expand description
Configuration for the subscription engine.
Fields§
§max_retries: u32Maximum number of retry attempts for failed deliveries.
retry_initial_delay: DurationInitial delay before the first retry.
retry_max_delay: DurationMaximum delay between retries.
retry_backoff_factor: f64Backoff multiplier for exponential backoff.
handshake_initial_delay: DurationDelay before the first activation handshake attempt.
handshake_max_attempts: u32Maximum number of activation handshake attempts.
handshake_retry_initial_delay: DurationInitial delay before retrying a failed activation handshake.
handshake_retry_max_delay: DurationMaximum delay between activation handshake retries.
heartbeat_check_interval: DurationHow often to check for heartbeats that are due.
error_threshold: u32Number of consecutive failures before transitioning to error status.
off_threshold: u32Number of consecutive failures before transitioning to off status.
supported_channel_types: Vec<String>Supported channel types.
ws_token_lifetime_secs: i64Lifetime of WebSocket binding tokens in seconds.
smtp: Option<SmtpSettings>SMTP settings for the email channel. None disables the email dispatcher.
messaging: Option<MessagingSettings>FHIR Messaging channel settings. None disables the messaging dispatcher.
Trait Implementations§
Source§impl Clone for SubscriptionConfig
impl Clone for SubscriptionConfig
Source§fn clone(&self) -> SubscriptionConfig
fn clone(&self) -> SubscriptionConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SubscriptionConfig
impl Debug for SubscriptionConfig
Auto Trait Implementations§
impl Freeze for SubscriptionConfig
impl RefUnwindSafe for SubscriptionConfig
impl Send for SubscriptionConfig
impl Sync for SubscriptionConfig
impl Unpin for SubscriptionConfig
impl UnsafeUnpin for SubscriptionConfig
impl UnwindSafe for SubscriptionConfig
Blanket Implementations§
impl<T> Allocation for T
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
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>
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>
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