pub struct OkxWsStreamPayload {
pub id: String,
pub operation: OkxWsStreamOperation,
pub args: Value,
}Fields§
§id: String§operation: OkxWsStreamOperation§args: ValueTrait Implementations§
Source§impl Debug for OkxWsStreamPayload
impl Debug for OkxWsStreamPayload
Source§impl Serialize for OkxWsStreamPayload
impl Serialize for OkxWsStreamPayload
fn get_client(&self) -> &Client<Self>
fn get_oneshot_tx_map( &mut self, ) -> &mut HashMap<String, Sender<Result<OkxWsStreamResponse, SharedWsError>>>
fn send_oneshot( &mut self, payload: Payload, tx: Sender<Result<Response, SharedWsError>>, ) -> Result<(), SharedWsError>
fn recv_oneshot_resp(&mut self, text: &str) -> Option<Result<(), SharedWsError>>
Auto Trait Implementations§
impl Freeze for OkxWsStreamPayload
impl RefUnwindSafe for OkxWsStreamPayload
impl Send for OkxWsStreamPayload
impl Sync for OkxWsStreamPayload
impl Unpin for OkxWsStreamPayload
impl UnsafeUnpin for OkxWsStreamPayload
impl UnwindSafe for OkxWsStreamPayload
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