pub struct FileTransfer {
pub from: FileUri,
pub to: FileUri,
pub bytes_total: Option<u64>,
}Expand description
One planned transfer between two provider URIs.
bytes_total is measured in bytes; None means unknown and Some(0) is a
known empty transfer. The type does not require distinct URIs or schemes.
§Examples
use ailloli_ui_fs::{FileTransfer, FileUri};
let transfer = FileTransfer { from: FileUri::parse("file:///from")?, to: FileUri::parse("file:///to")?, bytes_total: Some(42) };
assert_eq!(transfer.bytes_total, Some(42));Fields§
§from: FileUriSource entry URI.
to: FileUriDestination entry URI.
bytes_total: Option<u64>Known total byte count, or None when not yet known.
Trait Implementations§
Source§impl Clone for FileTransfer
impl Clone for FileTransfer
Source§fn clone(&self) -> FileTransfer
fn clone(&self) -> FileTransfer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileTransfer
impl Debug for FileTransfer
Source§impl<'de> Deserialize<'de> for FileTransfer
impl<'de> Deserialize<'de> for FileTransfer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FileTransfer
impl PartialEq for FileTransfer
Source§impl Serialize for FileTransfer
impl Serialize for FileTransfer
impl Eq for FileTransfer
impl StructuralPartialEq for FileTransfer
Auto Trait Implementations§
impl Freeze for FileTransfer
impl RefUnwindSafe for FileTransfer
impl Send for FileTransfer
impl Sync for FileTransfer
impl Unpin for FileTransfer
impl UnwindSafe for FileTransfer
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