Struct binance::websockets::WebSockets [−][src]
pub struct WebSockets<'a, WE> { pub socket: Option<(WebSocket<AutoStream>, Response)>, // some fields omitted }
Fields
socket: Option<(WebSocket<AutoStream>, Response)>
Implementations
pub fn new_with_options<Callback>(
handler: Callback,
conf: Config
) -> WebSockets<'a, WE> where
Callback: FnMut(WE) -> Result<()> + 'a,
pub fn new_with_options<Callback>(
handler: Callback,
conf: Config
) -> WebSockets<'a, WE> where
Callback: FnMut(WE) -> Result<()> + 'a,
Disconnect from the endpoint