pub struct CancelFetchData(/* private fields */);
Expand description
Information for the SyncFilter::cancel_fetch_data callback.
Implementations§
Source§impl CancelFetchData
impl CancelFetchData
Sourcepub fn timeout(&self) -> bool
pub fn timeout(&self) -> bool
Whether or not the callback failed as a result of the 60 second timeout.
Sourcepub fn user_cancelled(&self) -> bool
pub fn user_cancelled(&self) -> bool
The user has cancelled the request manually.
A user could cancel a request through a download toast?
Sourcepub fn file_range(&self) -> Range<u64>
pub fn file_range(&self) -> Range<u64>
The range of the file data that is no longer required.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CancelFetchData
impl RefUnwindSafe for CancelFetchData
impl Send for CancelFetchData
impl Sync for CancelFetchData
impl Unpin for CancelFetchData
impl UnwindSafe for CancelFetchData
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