pub struct SseConfig {
pub retry: u64,
pub max_buffer_size: usize,
pub compression: bool,
pub headers: HashMap<String, String>,
}Expand description
Configuration for SSE connections.
Fields§
§retry: u64Reconnection retry interval in milliseconds
max_buffer_size: usizeMaximum buffer size for incomplete lines
compression: boolEnable compression
headers: HashMap<String, String>Custom headers
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SseConfig
impl RefUnwindSafe for SseConfig
impl Send for SseConfig
impl Sync for SseConfig
impl Unpin for SseConfig
impl UnsafeUnpin for SseConfig
impl UnwindSafe for SseConfig
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