pub struct CheckpointRecovery<T> {
pub current: CheckpointAnchor<T>,
pub next: Option<CheckpointAnchor<T>>,
}Expand description
A recovery target and the next eligible checkpoint, without changing state.
next == None means the current anchor is the last authored anchor. It does
not declare the game won or prevent respawning there. Hosts apply the actual
recovery and emit feedback only after accepting it.
Fields§
§current: CheckpointAnchor<T>§next: Option<CheckpointAnchor<T>>Trait Implementations§
Source§impl<T> Clone for CheckpointRecovery<T>where
T: Clone,
impl<T> Clone for CheckpointRecovery<T>where
T: Clone,
Source§fn clone(&self) -> CheckpointRecovery<T>
fn clone(&self) -> CheckpointRecovery<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for CheckpointRecovery<T>where
T: Debug,
impl<T> Debug for CheckpointRecovery<T>where
T: Debug,
Source§impl<T> PartialEq for CheckpointRecovery<T>where
T: PartialEq,
impl<T> PartialEq for CheckpointRecovery<T>where
T: PartialEq,
impl<T> Copy for CheckpointRecovery<T>where
T: Copy,
impl<T> Eq for CheckpointRecovery<T>where
T: Eq,
impl<T> StructuralPartialEq for CheckpointRecovery<T>
Auto Trait Implementations§
impl<T> Freeze for CheckpointRecovery<T>where
T: Freeze,
impl<T> RefUnwindSafe for CheckpointRecovery<T>where
T: RefUnwindSafe,
impl<T> Send for CheckpointRecovery<T>where
T: Send,
impl<T> Sync for CheckpointRecovery<T>where
T: Sync,
impl<T> Unpin for CheckpointRecovery<T>where
T: Unpin,
impl<T> UnwindSafe for CheckpointRecovery<T>where
T: 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