wtx 0.47.9

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
13
14
15
use crate::{collection::ShortStrU8, http::OperationMode};

/// Parameters found in a matched route
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct RouteMatch {
  pub(crate) idx: u8,
  pub(crate) om: OperationMode,
  pub(crate) path: ShortStrU8<'static>,
}

impl RouteMatch {
  pub(crate) const fn new(idx: u8, om: OperationMode, path: ShortStrU8<'static>) -> Self {
    Self { idx, om, path }
  }
}