pub struct TickerStream;Expand description
Typed wrapper for ticker stream data.
Implementations§
Source§impl TickerStream
impl TickerStream
Sourcepub fn parse(data: &Value) -> Result<TickerData>
pub fn parse(data: &Value) -> Result<TickerData>
Parse raw WS data into typed TickerData.
Sourcepub fn matches_topic(topic: &str) -> bool
pub fn matches_topic(topic: &str) -> bool
Check if the given topic matches a ticker channel.
Auto Trait Implementations§
impl Freeze for TickerStream
impl RefUnwindSafe for TickerStream
impl Send for TickerStream
impl Sync for TickerStream
impl Unpin for TickerStream
impl UnsafeUnpin for TickerStream
impl UnwindSafe for TickerStream
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