wtx 0.45.0

A collection of different transport implementations and related tools focused primarily on web technologies.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// An extension with the `critical` flag.
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct FlaggedExtension<E> {
  pub(crate) extension: E,
  pub(crate) critical: bool,
}

impl<E> FlaggedExtension<E> {
  pub(crate) const fn new(extension: E, critical: bool) -> Self {
    Self { extension, critical }
  }
}