wtx 0.44.3

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::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: &'static str,
}

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