pub enum ServerTransferEvent {
DeviceRegistered {
ip: IpAddr,
info: RegisterDtoV2,
},
PrepareUpload {
session_id: String,
sender_ip: IpAddr,
sender_info: RegisterDtoV2,
cert_fingerprint: Option<String>,
files: HashMap<String, FileDto>,
decision_tx: Sender<PrepareUploadDecision>,
},
FileStarted {
session_id: String,
file_id: String,
file_name: String,
total_bytes: u64,
},
FileProgress {
session_id: String,
file_id: String,
file_name: String,
bytes_received: u64,
total_bytes: u64,
},
FileCompleted {
session_id: String,
file_id: String,
result: StorageCommitResult,
},
FileFailed {
session_id: String,
file_id: String,
error: String,
},
SessionEnded {
session_id: String,
reason: SessionEndReason,
},
BrowserDownload {
download_id: String,
remote_ip: IpAddr,
file_name: String,
file_size: u64,
decision_tx: Sender<bool>,
},
}Expand description
Application events emitted by the HTTP server for GUI/TUI integration.
Variants§
DeviceRegistered
Peer registration received.
PrepareUpload
An incoming upload preparation request.
FileStarted
A file upload started.
FileProgress
A file upload progress update.
FileCompleted
A file upload completed and verified.
FileFailed
A file upload failed.
SessionEnded
The transfer session ended.
BrowserDownload
A browser requested a file download in share via link mode.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ServerTransferEvent
impl !UnwindSafe for ServerTransferEvent
impl Freeze for ServerTransferEvent
impl Send for ServerTransferEvent
impl Sync for ServerTransferEvent
impl Unpin for ServerTransferEvent
impl UnsafeUnpin for ServerTransferEvent
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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