pub struct SseTransportFactory { /* private fields */ }Expand description
Factory that opens an HTTP SSE stream and connects via Server-Sent Events.
Created from an SseTransportConfig. Each call to
connect opens a new HTTP connection.
Implementations§
Source§impl SseTransportFactory
impl SseTransportFactory
Sourcepub fn new(config: SseTransportConfig) -> Self
pub fn new(config: SseTransportConfig) -> Self
Creates a new factory from the given SSE transport configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SseTransportFactory
impl !RefUnwindSafe for SseTransportFactory
impl Send for SseTransportFactory
impl Sync for SseTransportFactory
impl Unpin for SseTransportFactory
impl UnsafeUnpin for SseTransportFactory
impl !UnwindSafe for SseTransportFactory
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