Trait HoprSessionServer
pub trait HoprSessionServer {
type Session: Send;
type Error: Error + Send + Sync + 'static;
// Required method
fn process<'life0, 'async_trait>(
&'life0 self,
session: Self::Session,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Trait for processing incoming HOPR sessions on exit nodes.
The concrete session type is defined by the implementor (typically hopr-lib), keeping transport-level types out of the API crate.
Nodes that do not run a session server simply omit calling with_session_server.