pub struct Transfer {Show 17 fields
pub id: String,
pub direction: String,
pub peer: String,
pub peer_fingerprint: String,
pub state: String,
pub total_bytes: u64,
pub done_bytes: u64,
pub files_total: usize,
pub files_done: usize,
pub current: Option<String>,
pub saved_to: Option<String>,
pub saved_files: Vec<String>,
pub error: Option<Error>,
pub message: Option<String>,
pub clipboard: bool,
pub started: u64,
pub finished: Option<u64>,
}Expand description
One send or receive, from the first request to the last byte.
Fields§
§id: String§direction: String“send” or “receive”.
peer: String§peer_fingerprint: String§state: Stringwaiting, active, done, failed, cancelled or declined.
total_bytes: u64§done_bytes: u64§files_total: usize§files_done: usize§current: Option<String>§saved_to: Option<String>§saved_files: Vec<String>§error: Option<Error>§message: Option<String>A received text message, shown with Copy rather than saved as a file.
clipboard: boolSent from the clipboard: the receiver puts it on its clipboard.
started: u64§finished: Option<u64>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transfer
impl RefUnwindSafe for Transfer
impl Send for Transfer
impl Sync for Transfer
impl Unpin for Transfer
impl UnsafeUnpin for Transfer
impl UnwindSafe for Transfer
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