pub struct Transfer<M> {
pub size: u64,
pub checksum: Option<Checksum>,
pub name: String,
pub meta: M,
}Expand description
One unit of work for the engine. meta is the caller’s own item type,
carried opaquely and handed straight back via Outcome; the engine reads
only size, checksum, and name.
Fields§
§size: u64§checksum: Option<Checksum>§name: String§meta: MAuto Trait Implementations§
impl<M> Freeze for Transfer<M>where
M: Freeze,
impl<M> RefUnwindSafe for Transfer<M>where
M: RefUnwindSafe,
impl<M> Send for Transfer<M>where
M: Send,
impl<M> Sync for Transfer<M>where
M: Sync,
impl<M> Unpin for Transfer<M>where
M: Unpin,
impl<M> UnsafeUnpin for Transfer<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for Transfer<M>where
M: UnwindSafe,
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