pub struct PresentData<'a> {
pub address: SocketAddr,
pub request: &'a FatRequest,
pub body: &'a mut LazyRequestBody,
pub host: &'a Host,
pub path: Option<&'a Path>,
pub server_cache_preference: &'a mut ServerCachePreference,
pub client_cache_preference: &'a mut ClientCachePreference,
pub response: &'a mut Response<BytesCow>,
pub args: PresentArguments,
}
Expand description
Add data pretending to present state in creating the response.
Fields§
§address: SocketAddr
§request: &'a FatRequest
§body: &'a mut LazyRequestBody
§host: &'a Host
§path: Option<&'a Path>
§server_cache_preference: &'a mut ServerCachePreference
§client_cache_preference: &'a mut ClientCachePreference
§response: &'a mut Response<BytesCow>
§args: PresentArguments
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for PresentData<'a>
impl<'a> !RefUnwindSafe for PresentData<'a>
impl<'a> !Send for PresentData<'a>
impl<'a> !Sync for PresentData<'a>
impl<'a> Unpin for PresentData<'a>
impl<'a> !UnwindSafe for PresentData<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more