Skip to main content

Connector

Trait Connector 

Source
pub trait Connector: Send + Sync {
    // Required method
    fn open(&self, service: &str) -> Connecting;
}
Expand description

A caller-supplied way of reaching the four services: given a service name (directory, relay, accounts, provisioning), open a byte stream to it. This is how a host that owns the sockets, the browser above all, lends them to the client: the WebAssembly head implements it with a WebSocket per service opened from JavaScript (decision 0090, step 4). The protocol spoken over the stream is unchanged.

Required Methods§

Source

fn open(&self, service: &str) -> Connecting

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§