pub struct PusherConfig {
pub app_id: String,
pub app_key: String,
pub app_secret: String,
pub cluster: String,
pub use_tls: bool,
pub host: Option<String>,
pub max_reconnection_attempts: u32,
pub backoff_interval: Duration,
pub activity_timeout: Duration,
pub pong_timeout: Duration,
}
Expand description
Config for the Pusher client. We are defaulting to .env. TODO: look into .toml or .yaml
Fields§
§app_id: String
The Pusher App ID.
app_key: String
The Pusher App key.
app_secret: String
The Pusher App secret.
cluster: String
The cluster.
use_tls: bool
Whether to use TLS for connections. Defaults to true.
host: Option<String>
The host to connect to. If None, the default Pusher host will be used.
max_reconnection_attempts: u32
The maximum number of reconnection attempts. Defaults to 6.
backoff_interval: Duration
The backoff interval for reconnection attempts. Defaults to 1 second.
activity_timeout: Duration
The activity timeout. Defaults to 120 seconds.
pong_timeout: Duration
The pong timeout. Defaults to 30 seconds.
Implementations§
Trait Implementations§
Source§impl Clone for PusherConfig
impl Clone for PusherConfig
Source§fn clone(&self) -> PusherConfig
fn clone(&self) -> PusherConfig
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 PusherConfig
impl Debug for PusherConfig
Auto Trait Implementations§
impl Freeze for PusherConfig
impl RefUnwindSafe for PusherConfig
impl Send for PusherConfig
impl Sync for PusherConfig
impl Unpin for PusherConfig
impl UnwindSafe for PusherConfig
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