pub struct Lease {
pub txn: TxnId,
pub owner: OwnerId,
pub epoch: u64,
pub worker_pid: Option<u32>,
pub renewed: Timestamp,
pub jobs: Vec<JobId>,
}Expand description
Exclusive ownership of a transaction (§12). txn is not in §8; the
backend fences on (txn, epoch), so the lease has to name its transaction.
Fields§
§txn: TxnId§owner: OwnerId§epoch: u64§worker_pid: Option<u32>§renewed: Timestamp§jobs: Vec<JobId>Supervisor jobs this owner submitted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lease
impl<'de> Deserialize<'de> for Lease
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Lease
impl StructuralPartialEq for Lease
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