pub trait BackCon:
'static
+ Send
+ Sync {
// Required methods
fn send(&self, data: Vec<u8>) -> BoxFuture<'_, Result<()>>;
fn pub_key(&self) -> &PubKey;
fn is_using_webrtc(&self) -> bool;
fn get_stats(&self) -> ConnStats;
}Expand description
Backend connection.
Required Methods§
Sourcefn send(&self, data: Vec<u8>) -> BoxFuture<'_, Result<()>>
fn send(&self, data: Vec<u8>) -> BoxFuture<'_, Result<()>>
Send data over this backend connection.
Sourcefn is_using_webrtc(&self) -> bool
fn is_using_webrtc(&self) -> bool
Returns true if we successfully connected over webrtc.