pub trait Source<'d> {
type Body<'a>: Into<Ref<'a, 'd>>
where Self: 'a,
'd: 'a;
// Required methods
fn try_project<V, T>(
&mut self,
value: V,
project: impl for<'a> FnOnce(V, View<'a, 'd>) -> T,
) -> Result<T, (V, Error)>;
fn body<'a>(&'a self) -> Self::Body<'a>
where 'd: 'a;
}Expand description
Transport storage that can expose request-body projections without changing ownership.
Required Associated Types§
Required Methods§
fn try_project<V, T>( &mut self, value: V, project: impl for<'a> FnOnce(V, View<'a, 'd>) -> T, ) -> Result<T, (V, Error)>
fn body<'a>(&'a self) -> Self::Body<'a>where
'd: 'a,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".