pub struct DownloadInstanceInputOutputCallbacks {
pub read: Option<Box<dyn FnMut(&mut [u8]) -> Option<isize>>>,
pub write: Option<Box<dyn FnMut(&[u8]) -> usize>>,
pub progress: Option<Box<dyn FnMut(u64, u64) -> bool>>,
}
Fields§
§read: Option<Box<dyn FnMut(&mut [u8]) -> Option<isize>>>
§write: Option<Box<dyn FnMut(&[u8]) -> usize>>
§progress: Option<Box<dyn FnMut(u64, u64) -> bool>>
Auto Trait Implementations§
impl !RefUnwindSafe for DownloadInstanceInputOutputCallbacks
impl !Send for DownloadInstanceInputOutputCallbacks
impl !Sync for DownloadInstanceInputOutputCallbacks
impl Unpin for DownloadInstanceInputOutputCallbacks
impl !UnwindSafe for DownloadInstanceInputOutputCallbacks
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