async_tungstenite::compat

Function cvt

Source
pub(crate) fn cvt<T>(r: Result<T, Error>) -> Poll<Result<T, Error>>