Skip to main content

Client

Trait Client 

Source
pub trait Client:
    Send
    + Sync
    + Sealed {
    // Required method
    fn stream(&self) -> BoxStream<Result<SSE>>;
}
Expand description

Client is the Server-Sent-Events interface. This trait is sealed and cannot be implemented for types outside this crate.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§