pub trait IPCProvider: Send + Sync {
// Required methods
fn SendRequest(
&self,
Channel: &str,
Payload: Value,
) -> BoxFuture<'_, Result<Value>>;
fn SendNotification(&self, Channel: &str, Method: &str, Payload: Value);
}Expand description
Cross-channel IPC provider abstraction.
Mirrors the shape of CommonLibrary::IPC::IPCProvider so consumers can
swap between the two with a single use change. Kept local to Vine to
avoid pulling CommonLibrary into the dependency graph.
Required Methods§
Sourcefn SendRequest(
&self,
Channel: &str,
Payload: Value,
) -> BoxFuture<'_, Result<Value>>
fn SendRequest( &self, Channel: &str, Payload: Value, ) -> BoxFuture<'_, Result<Value>>
Sends a request on the named channel and waits for a JSON response.
Sourcefn SendNotification(&self, Channel: &str, Method: &str, Payload: Value)
fn SendNotification(&self, Channel: &str, Method: &str, Payload: Value)
Fire-and-forget notification on the named channel.
Method is the gRPC method name inside the channel (e.g.
"$onDidChangeBreakpoints").
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".