pub struct BnWsStreamPayload {
pub id: String,
pub method: BnWsStreamMethod,
pub params: Option<Value>,
}Fields§
§id: String§method: BnWsStreamMethod§params: Option<Value>Trait Implementations§
Source§impl Debug for BnWsStreamPayload
impl Debug for BnWsStreamPayload
Source§impl Serialize for BnWsStreamPayload
impl Serialize for BnWsStreamPayload
fn get_client(&self) -> &Client<Self>
fn get_oneshot_tx_map( &mut self, ) -> &mut HashMap<String, Sender<Result<BnWsStreamResponse, 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 BnWsStreamPayload
impl RefUnwindSafe for BnWsStreamPayload
impl Send for BnWsStreamPayload
impl Sync for BnWsStreamPayload
impl Unpin for BnWsStreamPayload
impl UnwindSafe for BnWsStreamPayload
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