Trait xitca_server::net::AsListener
source · pub trait AsListener: Send {
// Required method
fn as_listener(&mut self) -> Result<Listener>;
}Expand description
Helper trait for convert listener types to tokio types. This is to delay the conversion and make it happen in server thread(s). Otherwise it could panic.