pub struct ContextCache;Expand description
Creates, reads, lists, updates expiry, or deletes explicit context caches.
Requests use CachedContentRequest; a listing reads one page per call.
Trait Implementations§
Source§impl Clone for ContextCache
impl Clone for ContextCache
Source§fn clone(&self) -> ContextCache
fn clone(&self) -> ContextCache
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContextCache
Source§impl Debug for ContextCache
impl Debug for ContextCache
Source§impl<'id> Decoder<'id, ContextCache> for CachedContentsDecoder
impl<'id> Decoder<'id, ContextCache> for CachedContentsDecoder
Source§fn classify(
&self,
frame: WireFrame,
) -> WireEvent<<CachedContentsDecoder as Decoder<'id, ContextCache>>::Event>
fn classify( &self, frame: WireFrame, ) -> WireEvent<<CachedContentsDecoder as Decoder<'id, ContextCache>>::Event>
Classify a page, empty acknowledgement, or resource. Malformed bodies remain decoding failures.
Source§fn eof(&mut self, out: Out<'id, ContextCache>) -> Result<Flow, ProviderError>
fn eof(&mut self, out: Out<'id, ContextCache>) -> Result<Flow, ProviderError>
A reply with no body at all is an acknowledgement: the status already answered.
Source§type Event = CachedContentReply
type Event = CachedContentReply
The wire’s typed event, produced by this decoder’s classifier.
Source§fn decode(
&mut self,
reply: <CachedContentsDecoder as Decoder<'id, ContextCache>>::Event,
out: Out<'id, ContextCache>,
) -> Result<Flow, ProviderError>
fn decode( &mut self, reply: <CachedContentsDecoder as Decoder<'id, ContextCache>>::Event, out: Out<'id, ContextCache>, ) -> Result<Flow, ProviderError>
Write one
Known event into the reply. An error ends the reply with
it.impl Eq for ContextCache
Source§impl Fold<ContextCache> for CachedContentFold
impl Fold<ContextCache> for CachedContentFold
Source§fn absorb(&mut self, event: &!) -> Result<(), ProviderError>
fn absorb(&mut self, event: &!) -> Result<(), ProviderError>
Absorb one event the consumer is about to see. An error fails the
reply.
Source§fn finish(
self,
end: CachedContentReply,
_reply: Reply,
) -> Result<CachedContentReply, ProviderError>
fn finish( self, end: CachedContentReply, _reply: Reply, ) -> Result<CachedContentReply, ProviderError>
The response, from the events absorbed, the provider’s end and what
the driver learned about the reply.
Source§impl Operation for ContextCache
impl Operation for ContextCache
Source§type Request = CachedContentRequest
type Request = CachedContentRequest
The normalized request this operation accepts.
Source§type End = CachedContentReply
type End = CachedContentReply
What the provider sends when it ends the reply. A fold needs one to
produce a response, so a reply that stopped early has none.
Source§type Response = CachedContentReply
type Response = CachedContentReply
The normalized response the events and the end fold into.
Source§type Fold = CachedContentFold
type Fold = CachedContentFold
One reply’s state: it absorbs the events the consumer sees, then
folds them with the end into the response.
Source§fn fold(
_request: &<ContextCache as Operation>::Request,
_call: &mut Call<'_>,
) -> <ContextCache as Operation>::Fold
fn fold( _request: &<ContextCache as Operation>::Request, _call: &mut Call<'_>, ) -> <ContextCache as Operation>::Fold
The state for one reply to
request, before its first frame. The
call says who answers and in which mode; an operation that records
telemetry opens its span here and hands it to
Call::instrument.Source§impl PartialEq for ContextCache
impl PartialEq for ContextCache
impl StructuralPartialEq for ContextCache
Auto Trait Implementations§
impl Freeze for ContextCache
impl RefUnwindSafe for ContextCache
impl Send for ContextCache
impl Sync for ContextCache
impl Unpin for ContextCache
impl UnsafeUnpin for ContextCache
impl UnwindSafe for ContextCache
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.