#[repr(C)]pub struct FileTransferCallbackExport {
pub client_id: u16,
pub transfer_id: u16,
pub remote_transfer_id: u16,
pub status: c_uint,
pub status_message: *const c_char,
pub remote_file_size: u64,
pub bytes: u64,
pub is_sender: c_int,
}Fields§
§client_id: u16the client who started the file transfer
transfer_id: u16local identifier of the transfer that has completed
remote_transfer_id: u16remote identifier of the transfer that has completed
status: c_uintstatus of the transfer. One of the values from the \ref FileTransferState enum
status_message: *const c_charutf8 encoded c string containing a human readable description of the status
remote_file_size: u64size in bytes of the complete file to be transferred
bytes: u64number of bytes transferred. Same as remotefileSize when the transfer completed entirely.
is_sender: c_intboolean. 1 if the server is sending the file. 0 if the server is receiving the file.
Auto Trait Implementations§
impl Freeze for FileTransferCallbackExport
impl RefUnwindSafe for FileTransferCallbackExport
impl !Send for FileTransferCallbackExport
impl !Sync for FileTransferCallbackExport
impl Unpin for FileTransferCallbackExport
impl UnwindSafe for FileTransferCallbackExport
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