pub trait Bridge: Send {
// Required methods
fn name(&self) -> &'static str;
fn connect(&mut self, vault: &ScopedVault) -> Result<()>;
fn outgoing(&mut self, remote_room: &str, ev: &LocalEvent) -> Result<()>;
fn incoming(&mut self) -> Result<Vec<(String, String, String)>>;
}Required Methods§
Sourcefn connect(&mut self, vault: &ScopedVault) -> Result<()>
fn connect(&mut self, vault: &ScopedVault) -> Result<()>
Open the connection to the other messenger with credentials from vault.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".