Trait geph4_protocol::bridge_exit::BridgeExitProtocol
source · [−]pub trait BridgeExitProtocol {
fn advertise_raw<'life0, 'async_trait>(
&'life0 self,
protocol: RawProtocol,
bridge_addr: SocketAddr,
bridge_group: SmolStr
) -> Pin<Box<dyn Future<Output = SocketAddr> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}Expand description
The nanorpc_derive trait describing the bridge/exit protocol.
Required Methods
sourcefn advertise_raw<'life0, 'async_trait>(
&'life0 self,
protocol: RawProtocol,
bridge_addr: SocketAddr,
bridge_group: SmolStr
) -> Pin<Box<dyn Future<Output = SocketAddr> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn advertise_raw<'life0, 'async_trait>(
&'life0 self,
protocol: RawProtocol,
bridge_addr: SocketAddr,
bridge_group: SmolStr
) -> Pin<Box<dyn Future<Output = SocketAddr> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Advertises an available raw port. If enough resources are available, returns the address to forward traffic to.