pub struct SseOptions {
pub capacity: usize,
pub initial_interval: Duration,
pub max_interval: Duration,
}Expand description
Options for SSE subscription.
Fields§
§capacity: usizeChannel capacity (default: 256).
initial_interval: DurationInitial backoff interval (default: 250ms).
max_interval: DurationMax backoff interval (default: 30s).
Trait Implementations§
Source§impl Clone for SseOptions
impl Clone for SseOptions
Source§fn clone(&self) -> SseOptions
fn clone(&self) -> SseOptions
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 SseOptions
impl Debug for SseOptions
Source§impl Default for SseOptions
impl Default for SseOptions
impl Copy for SseOptions
Auto Trait Implementations§
impl Freeze for SseOptions
impl RefUnwindSafe for SseOptions
impl Send for SseOptions
impl Sync for SseOptions
impl Unpin for SseOptions
impl UnwindSafe for SseOptions
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