pub struct FetchData { /* private fields */ }
Expand description
A ticket for the SyncFilter::fetch_data callback.
Implementations§
Source§impl FetchData
impl FetchData
Sourcepub fn report_progress(&self, total: u64, completed: u64) -> Result<()>
pub fn report_progress(&self, total: u64, completed: u64) -> Result<()>
Displays a progress bar next to the file in the file explorer to show the progress of the current operation. In addition, the standard Windows file progress dialog will open displaying the speed and progress based on the values set. During background hydrations, an interactive toast will appear notifying the user of an operation with a progress bar.
Trait Implementations§
Source§impl WriteAt for FetchData
impl WriteAt for FetchData
Source§fn write_at(&self, buf: &[u8], offset: u64) -> Result<()>
fn write_at(&self, buf: &[u8], offset: u64) -> Result<()>
Write data at an offset to a placeholder file.
The buffer passed must be 4KiB in length or end on the logical file size. Unfortunately, this is a restriction of the operating system.
This method is equivalent to calling CfExecute
with CF_OPERATION_TYPE_TRANSFER_DATA
.
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