pub struct FileTransferRecord { /* private fields */ }Implementations§
Source§impl FileTransferRecord
impl FileTransferRecord
pub fn new( task_id: TaskId, file_sign: String, file_name: String, total_size: u64, progress: f32, status: TransferStatus, direction: Direction, ) -> Self
pub fn file_sign(&self) -> &str
pub fn file_name(&self) -> &str
pub fn total_size(&self) -> u64
pub fn progress(&self) -> f32
pub fn status(&self) -> &TransferStatus
pub fn direction(&self) -> Direction
pub fn task_id(&self) -> TaskId
Trait Implementations§
Source§impl Clone for FileTransferRecord
impl Clone for FileTransferRecord
Source§fn clone(&self) -> FileTransferRecord
fn clone(&self) -> FileTransferRecord
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for FileTransferRecord
impl !RefUnwindSafe for FileTransferRecord
impl Send for FileTransferRecord
impl Sync for FileTransferRecord
impl Unpin for FileTransferRecord
impl UnsafeUnpin for FileTransferRecord
impl !UnwindSafe for FileTransferRecord
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