Expand description
Betfair Stream API client implementation.
This crate provides an asynchronous client for interacting with Betfair’s Streaming API.
It manages connection setup, handshake, framing, heartbeats, and automatic reconnections.
Users can customize how incoming messages are handled by implementing the MessageProcessor trait
or using the built-in Cache processor for maintaining market and order caches.
Re-exports§
pub use betfair_stream_types as types;
Modules§
- cache
- Contains all the types that are necessary to properly build a local cache representation of the market
Structs§
- Betfair
Stream Builder - A Betfair Stream API client that handles connection, handshake, incoming/outgoing messages, heartbeat and automatic reconnects. Builder for creating a Betfair Streaming API client.
- Betfair
Stream Client - Handle to a running Betfair Streaming API client.
- Cache
- Default
MessageProcessorimplementation that maintains market and order caches. - Forwarder
MessageProcessorthat forwards rawResponseMessageobjects without transformation.- StreamAPI
Client Codec - Defines the encoding and decoding of Betfair stream api data structures using tokio
Enums§
- Cached
Message - Variants of messages produced by the cache-based processor.
Traits§
- Message
Processor - Trait for processing incoming Betfair streaming
ResponseMessageobjects into user-defined outputs.