pub struct SlackClientSocketModeConfig {
pub max_connections_count: u32,
pub debug_connections: bool,
pub initial_backoff_in_seconds: u64,
pub reconnect_timeout_in_seconds: u64,
pub ping_interval_in_seconds: u64,
pub ping_failure_threshold_times: u64,
}Fields§
§max_connections_count: u32§debug_connections: bool§initial_backoff_in_seconds: u64§reconnect_timeout_in_seconds: u64§ping_interval_in_seconds: u64§ping_failure_threshold_times: u64Implementations§
Source§impl SlackClientSocketModeConfig
impl SlackClientSocketModeConfig
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackClientSocketModeConfig from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn max_connections_count(&mut self, value: u32) -> &mut Self
pub fn max_connections_count(&mut self, value: u32) -> &mut Self
Sets max_connections_count to value.
Sourcepub fn with_max_connections_count(self, value: u32) -> Self
pub fn with_max_connections_count(self, value: u32) -> Self
Returns self with max_connections_count set to value.
Sourcepub fn debug_connections(&mut self, value: bool) -> &mut Self
pub fn debug_connections(&mut self, value: bool) -> &mut Self
Sets debug_connections to value.
Sourcepub fn with_debug_connections(self, value: bool) -> Self
pub fn with_debug_connections(self, value: bool) -> Self
Returns self with debug_connections set to value.
Sourcepub fn initial_backoff_in_seconds(&mut self, value: u64) -> &mut Self
pub fn initial_backoff_in_seconds(&mut self, value: u64) -> &mut Self
Sets initial_backoff_in_seconds to value.
Sourcepub fn with_initial_backoff_in_seconds(self, value: u64) -> Self
pub fn with_initial_backoff_in_seconds(self, value: u64) -> Self
Returns self with initial_backoff_in_seconds set to value.
Sourcepub fn reconnect_timeout_in_seconds(&mut self, value: u64) -> &mut Self
pub fn reconnect_timeout_in_seconds(&mut self, value: u64) -> &mut Self
Sets reconnect_timeout_in_seconds to value.
Sourcepub fn with_reconnect_timeout_in_seconds(self, value: u64) -> Self
pub fn with_reconnect_timeout_in_seconds(self, value: u64) -> Self
Returns self with reconnect_timeout_in_seconds set to value.
Sourcepub fn ping_interval_in_seconds(&mut self, value: u64) -> &mut Self
pub fn ping_interval_in_seconds(&mut self, value: u64) -> &mut Self
Sets ping_interval_in_seconds to value.
Sourcepub fn with_ping_interval_in_seconds(self, value: u64) -> Self
pub fn with_ping_interval_in_seconds(self, value: u64) -> Self
Returns self with ping_interval_in_seconds set to value.
Sourcepub fn ping_failure_threshold_times(&mut self, value: u64) -> &mut Self
pub fn ping_failure_threshold_times(&mut self, value: u64) -> &mut Self
Sets ping_failure_threshold_times to value.
Sourcepub fn with_ping_failure_threshold_times(self, value: u64) -> Self
pub fn with_ping_failure_threshold_times(self, value: u64) -> Self
Returns self with ping_failure_threshold_times set to value.
Source§impl SlackClientSocketModeConfig
impl SlackClientSocketModeConfig
pub const DEFAULT_CONNECTIONS_COUNT: u32 = 2
pub const DEFAULT_DEBUG_CONNECTIONS: bool = false
pub const DEFAULT_INITIAL_BACKOFF_IN_SECONDS: u64 = 5
pub const DEFAULT_RECONNECT_TIMEOUT_IN_SECONDS: u64 = 30
pub const DEFAULT_PING_INTERVAL_IN_SECONDS: u64 = 15
pub const DEFAULT_PING_FAILURE_THRESHOLD_TIMES: u64 = 5
Trait Implementations§
Source§impl Clone for SlackClientSocketModeConfig
impl Clone for SlackClientSocketModeConfig
Source§impl Debug for SlackClientSocketModeConfig
impl Debug for SlackClientSocketModeConfig
impl Eq for SlackClientSocketModeConfig
Source§impl From<SlackClientSocketModeConfigInit> for SlackClientSocketModeConfig
impl From<SlackClientSocketModeConfigInit> for SlackClientSocketModeConfig
Source§fn from(value: SlackClientSocketModeConfigInit) -> Self
fn from(value: SlackClientSocketModeConfigInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackClientSocketModeConfig
Auto Trait Implementations§
impl Freeze for SlackClientSocketModeConfig
impl RefUnwindSafe for SlackClientSocketModeConfig
impl Send for SlackClientSocketModeConfig
impl Sync for SlackClientSocketModeConfig
impl Unpin for SlackClientSocketModeConfig
impl UnsafeUnpin for SlackClientSocketModeConfig
impl UnwindSafe for SlackClientSocketModeConfig
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