Struct curl_http_client::collector::FileInfo
source · pub struct FileInfo {
pub path: PathBuf,
/* private fields */
}
Expand description
Stores the path for the downloaded file or the uploaded file. Internally it will also monitor the bytes transferred and the Download/Upload speed.
Fields§
§path: PathBuf
File path to download or file path of the source file to be uploaded.
Implementations§
source§impl FileInfo
impl FileInfo
sourcepub fn path(path: PathBuf) -> Self
pub fn path(path: PathBuf) -> Self
Sets the destination file path to download or file path of the source file to be uploaded.
sourcepub fn with_transfer_speed_sender(
self,
send_speed_info: Sender<TransferSpeed>
) -> Self
pub fn with_transfer_speed_sender( self, send_speed_info: Sender<TransferSpeed> ) -> Self
Sets the FileInfo struct with a message passing channel to send transfer speed information across user applications. It uses a tokio bounded channel to send the information across tasks.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl !UnwindSafe for FileInfo
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