pub enum NetPropError {
Show 15 variants
NoTable {
class: String,
},
NoStandardProxies,
NotFound {
table: String,
name: String,
},
Relocated {
name: String,
table: String,
},
InvalidOffset {
name: String,
offset: c_int,
},
NotAHandle {
name: String,
},
HandleOutOfRange {
name: String,
handle: EntityHandle,
},
NotAValue {
name: String,
kind: PropKind,
},
NotAnArray {
name: String,
kind: PropKind,
},
ElementOutOfRange {
name: String,
index: usize,
len: usize,
},
TypeMismatch {
name: String,
storage: Storage,
requested: &'static str,
},
UnknownStorage {
name: String,
},
NoProxy {
name: String,
},
NotNetworked {
class_name: String,
},
ClassMismatch {
name: String,
expected: String,
class_name: String,
found: String,
},
}Expand description
Why a networked variable could not be found or accessed.
Variants§
NoTable
The server class has no table of networked variables.
NoStandardProxies
ServerGameDll::standard_send_proxies found none, so how variables
are stored cannot be recognized.
NotFound
No variable has the name in the table or the tables nested within it.
Relocated
The variable is inside a nested table whose proxy relocates its data, so where it lives in the entity is unknown.
Fields
table: StringThe name of the PropKind::DataTable property whose proxy
relocates the data.
InvalidOffset
The variable’s offset, or its array’s stride, is negative, or its position in the entity overflows.
NotAHandle
NetProp::get_handle or NetProp::set_handle was called on a
property that is not declared as an entity handle.
HandleOutOfRange
NetProp::set_handle was given a handle whose slot lies past the
entity list.
NotAValue
The property is an array, a nested table, or of a type this crate does not know, so it has no single value to access.
NotAnArray
NetProp::element was called on a property that is neither an array
nor a nested table.
ElementOutOfRange
NetProp::element was given an index past the last element.
Fields
TypeMismatch
The variable is not stored compatibly with the type requested.
Fields
UnknownStorage
The variable’s send proxy is missing or is not one of the standard
proxies this crate recognizes, so how it is stored is
unknown. NetProp::value can still read it if it
has a proxy.
NoProxy
The property has no send proxy to read its value with.
NotNetworked
The entity has no edict, server class, or send table.
ClassMismatch
The entity’s class does not derive from the one the variable was resolved in, so the variable’s offset does not hold for it.
Trait Implementations§
Source§impl Clone for NetPropError
impl Clone for NetPropError
Source§impl Debug for NetPropError
impl Debug for NetPropError
Source§impl Display for NetPropError
impl Display for NetPropError
impl Eq for NetPropError
Source§impl Error for NetPropError
impl Error for NetPropError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<NetPropError> for SoundscapeError
impl From<NetPropError> for SoundscapeError
Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for AmmoError
Available on crate feature tf2 only.
impl From<NetPropError> for AmmoError
tf2 only.Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for BossError
Available on crate feature tf2 only.
impl From<NetPropError> for BossError
tf2 only.Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for BuildingError
Available on crate feature tf2 only.
impl From<NetPropError> for BuildingError
tf2 only.Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for DominationError
Available on crate feature tf2 only.
impl From<NetPropError> for DominationError
tf2 only.Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for EffectError
Available on crate feature tf2 only.
impl From<NetPropError> for EffectError
tf2 only.Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for GameRulesError
Available on crate feature tf2 only.
impl From<NetPropError> for GameRulesError
tf2 only.Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for MvmError
Available on crate feature tf2 only.
impl From<NetPropError> for MvmError
tf2 only.Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for ObjectiveError
Available on crate feature tf2 only.
impl From<NetPropError> for ObjectiveError
tf2 only.Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for ObserverError
Available on crate feature tf2 only.
impl From<NetPropError> for ObserverError
tf2 only.Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for PlayerError
Available on crate feature tf2 only.
impl From<NetPropError> for PlayerError
tf2 only.Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for ProjectileError
Available on crate feature tf2 only.
impl From<NetPropError> for ProjectileError
tf2 only.Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for RagdollError
Available on crate feature tf2 only.
impl From<NetPropError> for RagdollError
tf2 only.Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for TfRagdollError
Available on crate feature tf2 only.
impl From<NetPropError> for TfRagdollError
tf2 only.Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for ScoreError
Available on crate feature tf2 only.
impl From<NetPropError> for ScoreError
tf2 only.Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for WeaponError
Available on crate feature tf2 only.
impl From<NetPropError> for WeaponError
tf2 only.Source§fn from(source: NetPropError) -> Self
fn from(source: NetPropError) -> Self
Source§impl From<NetPropError> for WearableError
Available on crate feature tf2 only.
impl From<NetPropError> for WearableError
tf2 only.