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.
impl Eq for SlackClientSocketModeConfig
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)