pub(crate) trait Server {
// Required methods
async fn mint_code(&self) -> Result<String, String>;
async fn entry(&self, code: &str) -> Result<Entry, String>;
async fn answer(&self, code: &str, accept: bool) -> Result<bool, String>;
}Expand description
srv, as open talks to it (a trait so the flow is tested without a network).
Required Methods§
async fn mint_code(&self) -> Result<String, String>
async fn entry(&self, code: &str) -> Result<Entry, String>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".