pub struct SmartResumeManager { /* private fields */ }Expand description
Coordinates conditional GET across multiple URI attempts for the same resource.
Implementations§
Source§impl SmartResumeManager
impl SmartResumeManager
Sourcepub fn get_or_create(&mut self, key: &str) -> &mut ConditionalRequest
pub fn get_or_create(&mut self, key: &str) -> &mut ConditionalRequest
Get or create conditional state for a download
Sourcepub fn mark_unchanged(&mut self, key: &str)
pub fn mark_unchanged(&mut self, key: &str)
Record that server returned 304 (unchanged)
Sourcepub fn is_all_unchanged(&self, keys: &[&str]) -> bool
pub fn is_all_unchanged(&self, keys: &[&str]) -> bool
Check if any URI returned 304 (all unchanged)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SmartResumeManager
impl RefUnwindSafe for SmartResumeManager
impl Send for SmartResumeManager
impl Sync for SmartResumeManager
impl Unpin for SmartResumeManager
impl UnsafeUnpin for SmartResumeManager
impl UnwindSafe for SmartResumeManager
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