Skip to main content

HostLink

Trait HostLink 

Source
pub trait HostLink: Send + Sync {
    // Required methods
    fn call(&self, method: &str, params: Value) -> Result<Value, ServiceError>;
    fn is_closed(&self) -> bool;
    fn close(&self);
}
Expand description

A connection to exactly one host generation, as the lifecycle uses it.

Required Methods§

Source

fn call(&self, method: &str, params: Value) -> Result<Value, ServiceError>

Source

fn is_closed(&self) -> bool

Whether the connection is known closed.

Source

fn close(&self)

Close the connection. Never stops the host.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§