pub struct SseReconnectOptions {
pub max_reconnects: u32,
pub reconnect_delay: Duration,
pub reconnect_on_eof: bool,
pub honor_server_retry: bool,
}Expand description
Reconnect behavior options for crate::HttpClient::execute_sse_with_reconnect.
Fields§
§max_reconnects: u32Maximum reconnect attempts after the first connection.
reconnect_delay: DurationBase reconnect delay between attempts.
reconnect_on_eof: boolWhether to reconnect when the SSE stream ends without an explicit error.
honor_server_retry: boolWhether to honor SSE retry: field as the next reconnect delay.
Implementations§
Source§impl SseReconnectOptions
impl SseReconnectOptions
Trait 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§impl PartialEq for SseReconnectOptions
impl PartialEq for SseReconnectOptions
impl Eq for SseReconnectOptions
impl StructuralPartialEq for SseReconnectOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.