pub struct SseReconnectOptions {
pub enabled: bool,
pub max_retries: Option<u32>,
pub base_delay: Duration,
pub max_delay: Duration,
}Expand description
Reconnect behavior for SSE connections.
Fields§
§enabled: bool§max_retries: Option<u32>§base_delay: Duration§max_delay: DurationTrait Implementations§
Source§impl Clone for SseReconnectOptions
impl Clone for SseReconnectOptions
Source§fn clone(&self) -> SseReconnectOptions
fn clone(&self) -> SseReconnectOptions
Returns a duplicate 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 SseReconnectOptions
impl Debug for SseReconnectOptions
Source§impl Default for SseReconnectOptions
impl Default for SseReconnectOptions
Source§fn default() -> SseReconnectOptions
fn default() -> SseReconnectOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SseReconnectOptions
impl RefUnwindSafe for SseReconnectOptions
impl Send for SseReconnectOptions
impl Sync for SseReconnectOptions
impl Unpin for SseReconnectOptions
impl UnsafeUnpin for SseReconnectOptions
impl UnwindSafe for SseReconnectOptions
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