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: u64
Implementations§
source§impl SlackClientSocketModeConfig
impl SlackClientSocketModeConfig
pub fn new() -> Self
pub fn max_connections_count(&mut self, value: u32) -> &mut Self
pub fn with_max_connections_count(self, value: u32) -> Self
pub fn debug_connections(&mut self, value: bool) -> &mut Self
pub fn with_debug_connections(self, value: bool) -> Self
pub fn initial_backoff_in_seconds(&mut self, value: u64) -> &mut Self
pub fn with_initial_backoff_in_seconds(self, value: u64) -> Self
pub fn reconnect_timeout_in_seconds(&mut self, value: u64) -> &mut Self
pub fn with_reconnect_timeout_in_seconds(self, value: u64) -> Self
pub fn ping_interval_in_seconds(&mut self, value: u64) -> &mut Self
pub fn with_ping_interval_in_seconds(self, value: u64) -> Self
pub fn ping_failure_threshold_times(&mut self, value: u64) -> &mut Self
pub fn with_ping_failure_threshold_times(self, value: u64) -> Self
source§impl SlackClientSocketModeConfig
impl SlackClientSocketModeConfig
pub const DEFAULT_CONNECTIONS_COUNT: u32 = 2u32
pub const DEFAULT_DEBUG_CONNECTIONS: bool = false
pub const DEFAULT_INITIAL_BACKOFF_IN_SECONDS: u64 = 5u64
pub const DEFAULT_RECONNECT_TIMEOUT_IN_SECONDS: u64 = 30u64
pub const DEFAULT_PING_INTERVAL_IN_SECONDS: u64 = 15u64
pub const DEFAULT_PING_FAILURE_THRESHOLD_TIMES: u64 = 5u64
Trait Implementations§
source§impl Clone for SlackClientSocketModeConfig
impl Clone for SlackClientSocketModeConfig
source§fn clone(&self) -> SlackClientSocketModeConfig
fn clone(&self) -> SlackClientSocketModeConfig
Returns a copy 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 moresource§impl Debug for SlackClientSocketModeConfig
impl Debug 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.
source§impl PartialEq for SlackClientSocketModeConfig
impl PartialEq for SlackClientSocketModeConfig
source§fn eq(&self, other: &SlackClientSocketModeConfig) -> bool
fn eq(&self, other: &SlackClientSocketModeConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SlackClientSocketModeConfig
impl StructuralEq for SlackClientSocketModeConfig
impl StructuralPartialEq for SlackClientSocketModeConfig
Auto Trait Implementations§
impl RefUnwindSafe for SlackClientSocketModeConfig
impl Send for SlackClientSocketModeConfig
impl Sync for SlackClientSocketModeConfig
impl Unpin 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