Skip to main content

Forward

Trait Forward 

Source
pub trait Forward {
    // Required methods
    fn ready(&mut self, wait: bool) -> Option<Result<(), String>>;
    fn request(&mut self, method: &str, params: &Value) -> Result<Value, String>;
}
Expand description

A project’s own server that the server hands calls to.

Required Methods§

Source

fn ready(&mut self, wait: bool) -> Option<Result<(), String>>

Whether it has answered initialize: none while it builds (or, with wait, once it has answered or stopped), or why it never will.

Source

fn request(&mut self, method: &str, params: &Value) -> Result<Value, String>

Its response to the request method with params, once it is ready, or why there is none: it stopped, with its last output.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§