pub struct AppUI {
pub peers: Arc<Mutex<Vec<Peer>>>,
pub window: WebviewWindow,
}Fields§
§peers: Arc<Mutex<Vec<Peer>>>§window: WebviewWindowTrait Implementations§
Source§impl UI for AppUI
impl UI for AppUI
fn log(&self, msg: &str)
fn peer_found(&self, peer: &Peer)
fn peer_lost(&self, id: &str)
fn show_progress_bar(&self, transfer_id: &str)
fn update_progress_bar( &self, transfer_id: &str, bytes_sent: u64, total_bytes: u64, )
fn file_progress_bar( &self, transfer_id: &str, file_name: &str, file_bytes_sent: u64, file_total_bytes: u64, )
fn transfert_incoming( &self, transfer_id: &str, sender: &str, total_bytes: u64, files: Vec<String>, )
fn transfert_refused(&self, transfer_id: &str)
fn transfert_cancel(&self, transfer_id: &str)
fn transfert_completed(&self, transfer_id: &str)
fn transfert_received( &self, transfer_id: &str, peer: &str, bytes: u64, files: Vec<String>, )
fn transfert_error(&self, transfer_id: &str, error: &ToolError)
Auto Trait Implementations§
impl Freeze for AppUI
impl !RefUnwindSafe for AppUI
impl Send for AppUI
impl Sync for AppUI
impl Unpin for AppUI
impl UnsafeUnpin for AppUI
impl !UnwindSafe for AppUI
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