Trait XRPLAsyncWebsocketIO

Source
pub trait XRPLAsyncWebsocketIO {
    // Required methods
    async fn xrpl_send(
        &mut self,
        message: XRPLRequest<'_>,
    ) -> XRPLClientResult<()>;
    async fn xrpl_receive(
        &mut self,
    ) -> XRPLClientResult<Option<XRPLResponse<'_>>>;
}

Required Methods§

Source

async fn xrpl_send(&mut self, message: XRPLRequest<'_>) -> XRPLClientResult<()>

Source

async fn xrpl_receive(&mut self) -> XRPLClientResult<Option<XRPLResponse<'_>>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> XRPLAsyncWebsocketIO for T
where T: Stream<Item = XRPLClientResult<String>> + Sink<String, Error = XRPLClientException> + MessageHandler + Unpin + ?Sized,