pub trait AsyncSvsClient: Sealed {
// Required methods
async fn svs_call(
&self,
path: &str,
query_format: u16,
body: Option<&[u8]>,
body_format: u16,
) -> Result<Message, RepeError>;
async fn svs_notify(
&self,
path: &str,
query_format: u16,
body: Option<&[u8]>,
body_format: u16,
) -> Result<(), RepeError>;
}Expand description
The async REPE transport an SVS pull is driven over. Implemented for the
async-TCP AsyncClient and, with the websocket feature, the
WebSocketClient — both expose the same
request/notify-with-formats calls the pull loop needs, so the async pullers
accept either. Sealed: it abstracts over the in-crate async clients and is not
meant to be implemented downstream.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl AsyncSvsClient for AsyncClient
impl AsyncSvsClient for WebSocketClient
Available on crate feature
websocket only.