cobs-io-async 0.0.4

Runtime-independent reliable byte-stream transport over COBS framing for unreliable point-to-point links, with no_std support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod connection;
mod protocol;
mod support;
mod sync;

#[test]
fn public_value_types_support_copy_equality_and_hashing() {
    use crate::{Config, ConfigError, ConnectionError, DecodeError, DecodeProgress, SeekableError};

    fn assert_traits<T: Copy + Eq + core::hash::Hash>() {}

    assert_traits::<SeekableError>();
    assert_traits::<DecodeProgress>();
    assert_traits::<DecodeError<SeekableError, SeekableError>>();
    assert_traits::<Config>();
    assert_traits::<ConfigError>();
    assert_traits::<ConnectionError<SeekableError>>();
}