pub struct RawWebSocketClient { /* private fields */ }Expand description
Streams unenriched articles in real time (no sentiment, entities, or content — lower latency). No duplicate suppression.
Implementations§
Source§impl RawWebSocketClient
impl RawWebSocketClient
Sourcepub fn new(cfg: Config, opts: WebSocketOptions) -> Self
pub fn new(cfg: Config, opts: WebSocketOptions) -> Self
Returns a raw streaming client with custom options. Client instances
created by Client::new use default options.
Sourcepub fn stream(
&self,
params: GetRawArticlesWebSocketParams,
) -> ArticleStream<RawArticle>
pub fn stream( &self, params: GetRawArticlesWebSocketParams, ) -> ArticleStream<RawArticle>
Connects to the raw finlight WebSocket and yields articles matching
params. See WebSocketClient::stream for the streaming semantics.
Must be called within a tokio runtime.
Auto Trait Implementations§
impl !RefUnwindSafe for RawWebSocketClient
impl !UnwindSafe for RawWebSocketClient
impl Freeze for RawWebSocketClient
impl Send for RawWebSocketClient
impl Sync for RawWebSocketClient
impl Unpin for RawWebSocketClient
impl UnsafeUnpin for RawWebSocketClient
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