pub trait BridgeExitProtocol {
// Required methods
fn advertise_raw<'life0, 'async_trait>(
&'life0 self,
protocol: LegacyProtocol,
bridge_addr: SocketAddr,
bridge_group: SmolStr
) -> Pin<Box<dyn Future<Output = SocketAddr> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn advertise_raw_v2<'life0, 'async_trait>(
&'life0 self,
protocol: SmolStr,
bridge_addr: SocketAddr,
bridge_group: SmolStr
) -> Pin<Box<dyn Future<Output = SocketAddr> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn load_factor<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = f64> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
The nanorpc_derive trait describing the bridge/exit protocol.
Required Methods§
sourcefn advertise_raw<'life0, 'async_trait>(
&'life0 self,
protocol: LegacyProtocol,
bridge_addr: SocketAddr,
bridge_group: SmolStr
) -> Pin<Box<dyn Future<Output = SocketAddr> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn advertise_raw<'life0, 'async_trait>( &'life0 self, protocol: LegacyProtocol, bridge_addr: SocketAddr, bridge_group: SmolStr ) -> Pin<Box<dyn Future<Output = SocketAddr> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Advertises an available raw port. If enough resources are available, returns the address to forward traffic to.
sourcefn advertise_raw_v2<'life0, 'async_trait>(
&'life0 self,
protocol: SmolStr,
bridge_addr: SocketAddr,
bridge_group: SmolStr
) -> Pin<Box<dyn Future<Output = SocketAddr> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn advertise_raw_v2<'life0, 'async_trait>( &'life0 self, protocol: SmolStr, bridge_addr: SocketAddr, bridge_group: SmolStr ) -> Pin<Box<dyn Future<Output = SocketAddr> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Advertises an available raw port, with the v2 protocol. If enough resources are available, returns the address to forward traffic to.