pub struct CacheEntryToken(pub Vec<u8>);Expand description
Opaque identity of the specific stored entry revision a response was
served from, attached to responses returned by
StreamingCacheManager::get. Passing it back to update_metadata
lets the manager refuse to apply a metadata update to an entry that was
concurrently replaced (which would otherwise staple one revision’s
headers onto another revision’s body).
Tuple Fields§
§0: Vec<u8>Trait Implementations§
Source§impl Clone for CacheEntryToken
impl Clone for CacheEntryToken
Source§fn clone(&self) -> CacheEntryToken
fn clone(&self) -> CacheEntryToken
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 moreSource§impl Debug for CacheEntryToken
impl Debug for CacheEntryToken
impl Eq for CacheEntryToken
Source§impl PartialEq for CacheEntryToken
impl PartialEq for CacheEntryToken
impl StructuralPartialEq for CacheEntryToken
Auto Trait Implementations§
impl Freeze for CacheEntryToken
impl RefUnwindSafe for CacheEntryToken
impl Send for CacheEntryToken
impl Sync for CacheEntryToken
impl Unpin for CacheEntryToken
impl UnsafeUnpin for CacheEntryToken
impl UnwindSafe for CacheEntryToken
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