pub struct Lease {
pub idx: u64,
pub start: u64,
pub end: Arc<AtomicU64>,
pub progress: Arc<AtomicU64>,
}Expand description
A worker’s exclusive claim on part of the file.
Fields§
§idx: u64§start: u64§end: Arc<AtomicU64>Inclusive upper bound. The scheduler may lower this; re-read it before every write and stop when it is passed.
progress: Arc<AtomicU64>Bytes written from start, published by the owning worker.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lease
impl RefUnwindSafe for Lease
impl Send for Lease
impl Sync for Lease
impl Unpin for Lease
impl UnsafeUnpin for Lease
impl UnwindSafe for Lease
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