async-proto 0.26.14

Simple async binary network protocols
Documentation
1
2
3
4
5
6
7
8
9
10
11
use {
    async_proto_derive::impl_protocol_for,
    crate::ReadErrorKind,
};

impl_protocol_for! {
    #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "url")))))]
    #[async_proto(attr(doc = "A URL is represented as a string."))]
    #[async_proto(as_string, map_err = |e: url::ParseError| ReadErrorKind::Custom(e.to_string()))]
    type url::Url;
}