pub struct WebSocketClient { /* private fields */ }Implementations§
Source§impl WebSocketClient
impl WebSocketClient
pub fn new(wapm: &str) -> Self
pub fn new_with_instance(wapm: &str, instance: &str, access_token: &str) -> Self
pub fn attach(handle: CallHandle) -> Self
pub fn wait(self) -> Result<(), BusError>
pub fn try_wait(&mut self) -> Result<Option<()>, BusError>
pub async fn send(&self, data: Vec<u8>) -> Result<SendResult, BusError>
pub fn blocking_send(&self, data: Vec<u8>) -> Result<SendResult, BusError>
Trait Implementations§
Source§impl Clone for WebSocketClient
impl Clone for WebSocketClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebSocketClient
impl Debug for WebSocketClient
Source§impl Future for WebSocketClient
impl Future for WebSocketClient
Source§impl WebSocket for WebSocketClient
impl WebSocket for WebSocketClient
fn send<'life0, 'async_trait>(
&'life0 self,
data: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<SendResult, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_send(&self, data: Vec<u8>) -> Result<SendResult, BusError>
fn as_client(&self) -> Option<WebSocketClient>
Auto Trait Implementations§
impl Freeze for WebSocketClient
impl !RefUnwindSafe for WebSocketClient
impl Send for WebSocketClient
impl Sync for WebSocketClient
impl Unpin for WebSocketClient
impl !UnwindSafe for WebSocketClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more