Skip to main content

Session

Trait Session 

Source
pub trait Session: Send + Sync {
    // Required methods
    fn call(&self, method: &str, params: Value) -> Option<Answer>;
    fn close(&self);
}
Expand description

The one project open creates.

Required Methods§

Source

fn call(&self, method: &str, params: Value) -> Option<Answer>

Answers a method of the session; None for a method it does not have.

Source

fn close(&self)

Releases what the session holds.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§