pub struct HermesWSConnection { /* private fields */ }Expand description
A WebSocket client for consuming Pyth Hermes price feed updates
This client provides a simple interface to:
- Connect to a Hermes WebSocket endpoint
- Subscribe to price feed updates
- Receive updates as a stream of messages
Implementations§
Source§impl HermesWSConnection
impl HermesWSConnection
pub async fn send_request(&mut self, request: HermesClientMessage) -> Result<()>
Auto Trait Implementations§
impl Freeze for HermesWSConnection
impl !RefUnwindSafe for HermesWSConnection
impl Send for HermesWSConnection
impl Sync for HermesWSConnection
impl Unpin for HermesWSConnection
impl !UnwindSafe for HermesWSConnection
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