Skip to main content

AsyncSvsClient

Trait AsyncSvsClient 

Source
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§

Source

async fn svs_call( &self, path: &str, query_format: u16, body: Option<&[u8]>, body_format: u16, ) -> Result<Message, RepeError>

Request/response with explicit query/body formats (drives open / next).

Source

async fn svs_notify( &self, path: &str, query_format: u16, body: Option<&[u8]>, body_format: u16, ) -> Result<(), RepeError>

Fire-and-forget notify with explicit formats (drives best-effort cancel).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl AsyncSvsClient for AsyncClient

Source§

impl AsyncSvsClient for WebSocketClient

Available on crate feature websocket only.