pub struct SseServerConfig {
pub host: String,
pub port: u16,
pub sse_path: String,
pub message_path: String,
pub enable_cors: bool,
pub keep_alive_secs: u64,
}Expand description
Configuration for the SSE server transport
Fields§
§host: StringHost to bind to
port: u16Port to bind to
sse_path: StringPath for SSE endpoint
message_path: StringPath for message endpoint
enable_cors: boolEnable CORS
keep_alive_secs: u64Keep-alive interval in seconds
Implementations§
Trait Implementations§
Source§impl Clone for SseServerConfig
impl Clone for SseServerConfig
Source§fn clone(&self) -> SseServerConfig
fn clone(&self) -> SseServerConfig
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 SseServerConfig
impl Debug for SseServerConfig
Auto Trait Implementations§
impl Freeze for SseServerConfig
impl RefUnwindSafe for SseServerConfig
impl Send for SseServerConfig
impl Sync for SseServerConfig
impl Unpin for SseServerConfig
impl UnsafeUnpin for SseServerConfig
impl UnwindSafe for SseServerConfig
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