Struct cloud_filter::filter::info::FetchData
source · pub struct FetchData(/* private fields */);
Expand description
Information for the SyncFilter::fetch_data callback.
Implementations§
source§impl FetchData
impl FetchData
sourcepub fn interrupted_hydration(&self) -> bool
pub fn interrupted_hydration(&self) -> bool
Whether or not the callback was called from an interrupted hydration.
sourcepub fn explicit_hydration(&self) -> bool
pub fn explicit_hydration(&self) -> bool
Whether or not the callback was called from an explicit hydration via Placeholder::hydrate.
sourcepub fn required_file_range(&self) -> Range<u64>
pub fn required_file_range(&self) -> Range<u64>
The amount of bytes that must be written to the placeholder.
sourcepub fn optional_file_range(&self) -> Range<u64>
pub fn optional_file_range(&self) -> Range<u64>
The amount of bytes that must be written to the placeholder.
If the sync provider prefer to give data in larger chunks, use this range instead.
sourcepub fn last_dehydration_time(&self) -> FileTime
pub fn last_dehydration_time(&self) -> FileTime
The last time the file was dehydrated.
sourcepub fn last_dehydration_reason(&self) -> Option<DehydrationReason>
pub fn last_dehydration_reason(&self) -> Option<DehydrationReason>
The reason the file was last dehydrated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FetchData
impl RefUnwindSafe for FetchData
impl Send for FetchData
impl Sync for FetchData
impl Unpin for FetchData
impl UnwindSafe for FetchData
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