pub struct HandoffTransfer {
pub entity_id: EntityId,
pub source_station: StationId,
pub target_station: StationId,
pub source_owner_epoch: OwnerEpoch,
pub target_owner_epoch: OwnerEpoch,
pub prepared_at: Tick,
pub source_ghost_expires_at: Tick,
pub entity: EntityRecord,
}Expand description
In-memory transfer payload for a two-phase owner handoff.
Fields§
§entity_id: EntityIdEntity being transferred.
source_station: StationIdSource owner station.
target_station: StationIdTarget owner station.
source_owner_epoch: OwnerEpochOwner epoch observed at the source before transfer.
target_owner_epoch: OwnerEpochOwner epoch that target will use after commit.
prepared_at: TickTick at which source prepared the transfer.
source_ghost_expires_at: TickTick after which old source ghost can be discarded.
entity: EntityRecordAuthoritative entity state captured for transfer.
Trait Implementations§
Source§impl Clone for HandoffTransfer
impl Clone for HandoffTransfer
Source§fn clone(&self) -> HandoffTransfer
fn clone(&self) -> HandoffTransfer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HandoffTransfer
impl Debug for HandoffTransfer
Source§impl PartialEq for HandoffTransfer
impl PartialEq for HandoffTransfer
impl StructuralPartialEq for HandoffTransfer
Auto Trait Implementations§
impl Freeze for HandoffTransfer
impl RefUnwindSafe for HandoffTransfer
impl Send for HandoffTransfer
impl Sync for HandoffTransfer
impl Unpin for HandoffTransfer
impl UnsafeUnpin for HandoffTransfer
impl UnwindSafe for HandoffTransfer
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