Struct kvarn::CacheReply
source · pub struct CacheReply {
pub response: Response<Bytes>,
pub identity_body: Bytes,
pub sanitize_data: Result<CriticalRequestComponents, SanitizeError>,
pub future: Option<(ResponsePipeFuture, Option<usize>)>,
}
Expand description
The returned data from handle_cache
.
Can be used to get responses from Kvarn without sending a request over HTTP.
Fields§
§response: Response<Bytes>
The response. Duh.
identity_body: Bytes
The response body without compression.
sanitize_data: Result<CriticalRequestComponents, SanitizeError>
The returned value from utils::sanitize_request()
.
Internally used in SendKind
to apply utils::CriticalRequestComponents
to the response.
future: Option<(ResponsePipeFuture, Option<usize>)>
Must be awaited.
Can be used for WebSocket connections.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CacheReply
impl !Send for CacheReply
impl !Sync for CacheReply
impl Unpin for CacheReply
impl !UnwindSafe for CacheReply
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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