pub enum SubtrActorErrorVariant {
Show 26 variants
NoNetworkFrames,
FrameIndexOutOfBounds,
InconsistentPlayerSet {
found: HashSet<PlayerId>,
original: HashSet<PlayerId>,
},
NoUpdateAfterFrame {
actor_id: ActorId,
object_id: ObjectId,
frame_index: usize,
},
NoBoostAmountValue,
UnexpectedAttributeType {
expected_type: String,
actual_type: String,
},
NoMatchingPlayerId {
actor_id: ActorId,
},
NoGameActor,
ActorIdAlreadyExists {
actor_id: ActorId,
object_id: ObjectId,
},
ActorNotFound {
name: &'static str,
player_id: PlayerId,
},
NoStateForActorId {
actor_id: ActorId,
},
ObjectIdNotFound {
name: &'static str,
},
DerivedKeyValueNotFound {
name: String,
},
BallActorNotFound,
UnknownPlayerTeam {
player_id: PlayerId,
},
UnknownTeamObjectId {
object_id: ObjectId,
player_id: PlayerId,
},
EmptyTeamName {
player_id: PlayerId,
},
FinishProcessingEarly,
PlayerStatsHeaderNotFound,
InterpolationTimeOrderError {
start_time: f32,
time: f32,
end_time: f32,
},
UpdatedActorIdDoesNotExist {
update: UpdatedAttribute,
},
PropertyNotFoundInState {
property: &'static str,
},
CouldNotBuildReplayMeta,
FloatConversionError,
NDArrayShapeError(ShapeError),
UnknownFeatureAdderName(String),
}Expand description
SubtrActorErrorVariant is an enumeration of all the specific error
variants that can occur while processing game replays in the subtr-actor
domain. These include errors related to network frames, frame indexing,
player sets, actor states, object ids, team identities, and data types
amongst others.
Variants§
NoNetworkFrames
FrameIndexOutOfBounds
InconsistentPlayerSet
NoUpdateAfterFrame
NoBoostAmountValue
UnexpectedAttributeType
NoMatchingPlayerId
NoGameActor
ActorIdAlreadyExists
ActorNotFound
NoStateForActorId
ObjectIdNotFound
DerivedKeyValueNotFound
BallActorNotFound
UnknownPlayerTeam
UnknownTeamObjectId
EmptyTeamName
FinishProcessingEarly
PlayerStatsHeaderNotFound
InterpolationTimeOrderError
UpdatedActorIdDoesNotExist
Fields
§
update: UpdatedAttributePropertyNotFoundInState
CouldNotBuildReplayMeta
FloatConversionError
NDArrayShapeError(ShapeError)
UnknownFeatureAdderName(String)
Trait Implementations§
Source§impl Clone for SubtrActorErrorVariant
impl Clone for SubtrActorErrorVariant
Source§fn clone(&self) -> SubtrActorErrorVariant
fn clone(&self) -> SubtrActorErrorVariant
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 SubtrActorErrorVariant
impl Debug for SubtrActorErrorVariant
Source§impl Display for SubtrActorErrorVariant
impl Display for SubtrActorErrorVariant
Source§impl Error for SubtrActorErrorVariant
impl Error for SubtrActorErrorVariant
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ShapeError> for SubtrActorErrorVariant
impl From<ShapeError> for SubtrActorErrorVariant
Source§fn from(source: ShapeError) -> Self
fn from(source: ShapeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SubtrActorErrorVariant
impl RefUnwindSafe for SubtrActorErrorVariant
impl Send for SubtrActorErrorVariant
impl Sync for SubtrActorErrorVariant
impl Unpin for SubtrActorErrorVariant
impl UnwindSafe for SubtrActorErrorVariant
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