Struct s2protocol::state::SC2ReplayState
source · pub struct SC2ReplayState {
pub units: HashMap<u32, SC2Unit>,
pub user_state: HashMap<i64, SC2UserState>,
pub filename: String,
pub sha256: String,
}Expand description
The state of the replay as it’s being processed, units are added to owners, control groups are updated, unit position recorded, etc.
Fields§
§units: HashMap<u32, SC2Unit>The registered units state as they change through time. These are with unit index as reference
user_state: HashMap<i64, SC2UserState>The per-user state, the control groups, the supply, units, upgrades, as it progresses through time.
filename: StringThe filename of the replay
sha256: StringThe sha256 digest of the replay file.
Trait Implementations§
source§impl Clone for SC2ReplayState
impl Clone for SC2ReplayState
source§fn clone(&self) -> SC2ReplayState
fn clone(&self) -> SC2ReplayState
Returns a copy 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 SC2ReplayState
impl Debug for SC2ReplayState
source§impl Default for SC2ReplayState
impl Default for SC2ReplayState
source§fn default() -> SC2ReplayState
fn default() -> SC2ReplayState
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SC2ReplayState
impl<'de> Deserialize<'de> for SC2ReplayState
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
Auto Trait Implementations§
impl RefUnwindSafe for SC2ReplayState
impl Send for SC2ReplayState
impl Sync for SC2ReplayState
impl Unpin for SC2ReplayState
impl UnwindSafe for SC2ReplayState
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