pub enum EntityRole {
Owned {
owner_epoch: OwnerEpoch,
},
Ghost {
owner_station: StationId,
owner_epoch: OwnerEpoch,
expires_at: Tick,
},
}Expand description
Authority role for an entity copy stored in a station.
Variants§
Owned
This station is the authoritative owner.
Fields
§
owner_epoch: OwnerEpochOwner epoch for stale message detection.
Ghost
This station has a read-only ghost copy from an owner station.
Implementations§
Source§impl EntityRole
impl EntityRole
Sourcepub const fn owner_epoch(self) -> OwnerEpoch
pub const fn owner_epoch(self) -> OwnerEpoch
Returns the owner epoch for ordering handoffs and stale messages.
Trait Implementations§
Source§impl Clone for EntityRole
impl Clone for EntityRole
Source§fn clone(&self) -> EntityRole
fn clone(&self) -> EntityRole
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 moreimpl Copy for EntityRole
Source§impl Debug for EntityRole
impl Debug for EntityRole
impl Eq for EntityRole
Source§impl PartialEq for EntityRole
impl PartialEq for EntityRole
impl StructuralPartialEq for EntityRole
Auto Trait Implementations§
impl Freeze for EntityRole
impl RefUnwindSafe for EntityRole
impl Send for EntityRole
impl Sync for EntityRole
impl Unpin for EntityRole
impl UnsafeUnpin for EntityRole
impl UnwindSafe for EntityRole
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