Struct crypto_market_stream_poloniex::Protocol
[−]
[src]
pub struct Protocol;
Poloniex WebSocket protocol.
Trait Implementations
impl Protocol for Protocol
[src]
type Error = Error
Protocol error.
fn address() -> &'static str
[src]
Returns Poloniex
WebSocket stream address.
fn market() -> Market
[src]
Returns Poloniex
market identifier.
fn parse(msg: &str) -> Result<Option<Message>, Self::Error>
[src]
Parses received WebSocket message.
fn serialize(cmd: Command) -> String
[src]
Serializes WebSocket command.