#[repr(i32)]pub enum CellRole {
Unspecified = 0,
Leader = 1,
Sensor = 2,
Compute = 3,
Relay = 4,
Strike = 5,
Support = 6,
Follower = 7,
}Expand description
Tactical role that a node can fill within a cell
Variants§
Unspecified = 0
Leader = 1
Cell leader - coordinates operations
Sensor = 2
Primary sensor/scout - reconnaissance
Compute = 3
Compute node - data processing
Relay = 4
Communications relay - extends range
Strike = 5
Strike platform - primary weapons
Support = 6
Support platform - logistics/medical
Follower = 7
General follower - no specialized role
Implementations§
Source§impl CellRole
impl CellRole
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CellRole
impl<'de> Deserialize<'de> for CellRole
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
Source§impl Ord for CellRole
impl Ord for CellRole
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for CellRole
impl PartialOrd for CellRole
impl Copy for CellRole
impl Eq for CellRole
impl StructuralPartialEq for CellRole
Auto Trait Implementations§
impl Freeze for CellRole
impl RefUnwindSafe for CellRole
impl Send for CellRole
impl Sync for CellRole
impl Unpin for CellRole
impl UnsafeUnpin for CellRole
impl UnwindSafe for CellRole
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