pub struct WebSocket { /* private fields */ }
Expand description
WebSocket transport
Implementations§
Trait Implementations§
Source§impl BatchTransport for WebSocket
impl BatchTransport for WebSocket
Source§type Batch = Response<Vec<Result<Value, Error>>, fn(Result<Vec<Result<Value, Error>>, Error>) -> Result<Vec<Result<Value, Error>>, Error>>
type Batch = Response<Vec<Result<Value, Error>>, fn(Result<Vec<Result<Value, Error>>, Error>) -> Result<Vec<Result<Value, Error>>, Error>>
The type of future this transport returns when a call is made.
Source§fn send_batch<T>(&self, requests: T) -> Self::Batch
fn send_batch<T>(&self, requests: T) -> Self::Batch
Sends a batch of prepared RPC calls.
Source§impl DuplexTransport for WebSocket
impl DuplexTransport for WebSocket
Source§type NotificationStream = UnboundedReceiver<Value>
type NotificationStream = UnboundedReceiver<Value>
The type of stream this transport returns
Source§fn subscribe(&self, id: SubscriptionId) -> Result<Self::NotificationStream>
fn subscribe(&self, id: SubscriptionId) -> Result<Self::NotificationStream>
Add a subscription to this transport
Source§fn unsubscribe(&self, id: SubscriptionId) -> Result
fn unsubscribe(&self, id: SubscriptionId) -> Result
Remove a subscription from this transport
Source§impl Transport for WebSocket
impl Transport for WebSocket
Source§type Out = Response<Value, fn(Result<Vec<Result<Value, Error>>, Error>) -> Result<Value, Error>>
type Out = Response<Value, fn(Result<Vec<Result<Value, Error>>, Error>) -> Result<Value, Error>>
The type of future this transport returns when a call is made.
Auto Trait Implementations§
impl Freeze for WebSocket
impl !RefUnwindSafe for WebSocket
impl Send for WebSocket
impl Sync for WebSocket
impl Unpin for WebSocket
impl !UnwindSafe for WebSocket
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