pub struct SseClientConfig {
pub sse_endpoint: Arc<str>,
pub retry_policy: Arc<dyn SseRetryPolicy>,
pub use_message_endpoint: Option<String>,
}Fields§
§sse_endpoint: Arc<str>client sse endpoint
§How this client resolve the message endpoint
if sse_endpoint has this format: <schema><authority?><sse_pq>,
then the message endpoint will be <schema><authority?><message_pq>.
For example, if you config the sse_endpoint as http://example.com/some_path/sse,
and the server send the message endpoint event as message?session_id=123,
then the message endpoint will be http://example.com/message.
This follows the rules of JavaScript’s new URL(url, base)
retry_policy: Arc<dyn SseRetryPolicy>§use_message_endpoint: Option<String>if this is settled, the client will use this endpoint to send message and skip get the endpoint event
Trait Implementations§
Source§impl Clone for SseClientConfig
impl Clone for SseClientConfig
Source§fn clone(&self) -> SseClientConfig
fn clone(&self) -> SseClientConfig
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 SseClientConfig
impl Debug for SseClientConfig
Source§impl Default for SseClientConfig
impl Default for SseClientConfig
Source§fn default() -> SseClientConfig
fn default() -> SseClientConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SseClientConfig
impl !RefUnwindSafe for SseClientConfig
impl Send for SseClientConfig
impl Sync for SseClientConfig
impl Unpin for SseClientConfig
impl !UnwindSafe for SseClientConfig
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