sark-http 0.39.0

HTTP wire types, semantics, codecs, and ownership invariants for Sark
Documentation
1
2
3
4
5
6
7
8
9
10
use std::marker::PhantomData;

use crate::request::{Id, body};

#[derive(Clone, Copy)]
pub(super) enum Origin<'req, 'd, B = body::Retained<'req, 'd>> {
    Empty(PhantomData<&'req &'d ()>),
    Retained(B),
    Task(Id<'d>),
}