pub struct PayloadCache { /* private fields */ }Expand description
Cache for prefetched payload data to reduce HTTP requests
Implementations§
Source§impl PayloadCache
impl PayloadCache
Sourcepub fn get_entry(&self, offset: usize) -> Result<PayloadEntry>
pub fn get_entry(&self, offset: usize) -> Result<PayloadEntry>
Get payload entry from the cache at the given offset
Trait Implementations§
Source§impl Debug for PayloadCache
impl Debug for PayloadCache
Source§impl Default for PayloadCache
impl Default for PayloadCache
Source§fn default() -> PayloadCache
fn default() -> PayloadCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PayloadCache
impl RefUnwindSafe for PayloadCache
impl Send for PayloadCache
impl Sync for PayloadCache
impl Unpin for PayloadCache
impl UnsafeUnpin for PayloadCache
impl UnwindSafe for PayloadCache
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