pub struct WebSocketClient<M: RawMutex, Status = WebSocketClosed> { /* private fields */ }
Implementations§
Source§impl<M: RawMutex> WebSocketClient<M, WebSocketClosed>
impl<M: RawMutex> WebSocketClient<M, WebSocketClosed>
pub fn open(url: Url) -> XRPLClientResult<WebSocketClient<M, WebSocketOpen>>
Trait Implementations§
Source§impl<M> XRPLClient for WebSocketClient<M, WebSocketOpen>where
M: RawMutex,
impl<M> XRPLClient for WebSocketClient<M, WebSocketOpen>where
M: RawMutex,
fn get_host(&self) -> Url
async fn request_impl<'a: 'b, 'b>( &self, request: XRPLRequest<'a>, ) -> XRPLClientResult<XRPLResponse<'b>>
fn set_request_id(&self, request: &mut XRPLRequest<'_>)
Source§fn get_random_id<'a>(&self) -> Cow<'a, str>
fn get_random_id<'a>(&self) -> Cow<'a, str>
Generate a random id.
Source§impl<M> XRPLSyncClient for WebSocketClient<M, WebSocketOpen>where
M: RawMutex,
impl<M> XRPLSyncClient for WebSocketClient<M, WebSocketOpen>where
M: RawMutex,
fn request<'a: 'b, 'b>( &self, request: XRPLRequest<'a>, ) -> XRPLClientResult<XRPLResponse<'b>>
fn get_common_fields(&self) -> XRPLClientResult<CommonFields<'_>>
Source§impl<M> XRPLSyncWebsocketIO for WebSocketClient<M, WebSocketOpen>where
M: RawMutex,
impl<M> XRPLSyncWebsocketIO for WebSocketClient<M, WebSocketOpen>where
M: RawMutex,
fn xrpl_send(&mut self, message: XRPLRequest<'_>) -> XRPLClientResult<()>
fn xrpl_receive(&mut self) -> XRPLClientResult<Option<XRPLResponse<'_>>>
Auto Trait Implementations§
impl<M, Status = WebSocketClosed> !Freeze for WebSocketClient<M, Status>
impl<M, Status = WebSocketClosed> !RefUnwindSafe for WebSocketClient<M, Status>
impl<M, Status> Send for WebSocketClient<M, Status>
impl<M, Status> Sync for WebSocketClient<M, Status>
impl<M, Status> Unpin for WebSocketClient<M, Status>where
Status: Unpin,
impl<M, Status = WebSocketClosed> !UnwindSafe for WebSocketClient<M, Status>
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