rasi-ext 0.1.11

This library includes extend features or experimental features that are useful for asynchronous programming.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::io;

use crate::future::event_map::EventStatus;

pub(crate) fn map_quic_error(error: quiche::Error) -> io::Error {
    io::Error::new(io::ErrorKind::Other, error)
}

pub(crate) fn map_event_map_error(error: EventStatus) -> io::Error {
    io::Error::new(io::ErrorKind::BrokenPipe, format!("{:?}", error))
}