pub struct TransferRegistryHandle {
pub active: Arc<Mutex<HashMap<String, (Arc<AtomicBool>, Option<AbortHandle>)>>>,
}Expand description
implémentation du registre de transferts côté Tauri : il se branche sur la même map que TransferState pour que cancel_transfer gère les réceptions
Fields§
§active: Arc<Mutex<HashMap<String, (Arc<AtomicBool>, Option<AbortHandle>)>>>Trait Implementations§
Source§impl TransferRegistry for TransferRegistryHandle
impl TransferRegistry for TransferRegistryHandle
fn register(&self, transfer_id: &str, stop: Arc<AtomicBool>)
fn unregister(&self, transfer_id: &str)
Auto Trait Implementations§
impl Freeze for TransferRegistryHandle
impl RefUnwindSafe for TransferRegistryHandle
impl Send for TransferRegistryHandle
impl Sync for TransferRegistryHandle
impl Unpin for TransferRegistryHandle
impl UnsafeUnpin for TransferRegistryHandle
impl UnwindSafe for TransferRegistryHandle
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