pub struct CoverReservation {
pub owner: u64,
pub position: Vec3,
pub remaining_seconds: f32,
}Expand description
A value snapshot of an active cover lease, in simulation time.
Changing this value does not change the board. It is not an ownership token
or a guarantee of reachability, safety or continued ownership after the board
changes. See SquadBoard::reservations for a compiling inspection example.
Fields§
§owner: u64Nonzero member ID supplied to SquadBoard::reserve.
position: Vec3The reserved cover point.
remaining_seconds: f32Remaining simulation seconds, greater than zero and at most 1.5.
Trait Implementations§
Source§impl Clone for CoverReservation
impl Clone for CoverReservation
Source§fn clone(&self) -> CoverReservation
fn clone(&self) -> CoverReservation
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 Debug for CoverReservation
impl Debug for CoverReservation
Source§impl PartialEq for CoverReservation
impl PartialEq for CoverReservation
impl Copy for CoverReservation
impl StructuralPartialEq for CoverReservation
Auto Trait Implementations§
impl Freeze for CoverReservation
impl RefUnwindSafe for CoverReservation
impl Send for CoverReservation
impl Sync for CoverReservation
impl Unpin for CoverReservation
impl UnwindSafe for CoverReservation
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