Struct FetchData

Source
pub struct FetchData { /* private fields */ }
Expand description

A ticket for the SyncFilter::fetch_data callback.

Implementations§

Source§

impl FetchData

Source

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 Debug for FetchData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ReadAt for FetchData

Source§

fn read_at(&self, buf: &mut [u8], offset: u64) -> Result<u64>

Read data at an offset from a placeholder file.

This method is equivalent to calling CfExecute with CF_OPERATION_TYPE_RETRIEVE_DATA.

Source§

impl WriteAt for FetchData

Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.