pub enum Subscription {
Show 17 variants
MapRoundWins,
Map,
PlayerID,
PlayerMatchStats,
PlayerState,
PlayerWeapons,
Provider,
Round,
AllGrenades,
AllPlayersID,
AllPlayersMatchStats,
AllPlayersPosition,
AllPlayersState,
AllPlayersWeapons,
Bomb,
PhaseCountdowns,
PlayerPosition,
}Expand description
which pieces of information to subscribe to
Variants§
MapRoundWins
history of round wins
Map
mode, map, phase, team scores
PlayerID
steamid
PlayerMatchStats
scoreboard info
PlayerState
armor, flashed, equip_value, health, etc.
PlayerWeapons
list of player weapons and weapon state
Provider
info about the game providing info
Round
round phase and the winning team
AllGrenades
grenade effecttime, lifetime, owner, position, type, velocity
AllPlayersID
the steam id of each player
AllPlayersMatchStats
the scoreboard info for each player
AllPlayersPosition
player_position but for each player
AllPlayersState
the player_state for each player
AllPlayersWeapons
the player_weapons for each player
Bomb
location of the bomb, who’s carrying it, dropped or not
PhaseCountdowns
time remaining in tenths of a second, which phase
PlayerPosition
forward direction, position for currently spectated player
Implementations§
Source§impl Subscription
impl Subscription
Sourcepub const UNRESTRICTED: &'static [Subscription]
pub const UNRESTRICTED: &'static [Subscription]
The subscriptions available in every context
Sourcepub const SPECTATOR_ONLY: &'static [Subscription]
pub const SPECTATOR_ONLY: &'static [Subscription]
The subscriptions only available to spectators (UNTESTED)
Trait Implementations§
Source§impl Clone for Subscription
impl Clone for Subscription
Source§fn clone(&self) -> Subscription
fn clone(&self) -> Subscription
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 Subscription
impl Debug for Subscription
Source§impl From<&Subscription> for Subscription
impl From<&Subscription> for Subscription
Source§fn from(x: &Subscription) -> Self
fn from(x: &Subscription) -> Self
Converts to this type from the input type.
Source§impl Hash for Subscription
impl Hash for Subscription
Source§impl PartialEq for Subscription
impl PartialEq for Subscription
impl Copy for Subscription
impl Eq for Subscription
impl StructuralPartialEq for Subscription
Auto Trait Implementations§
impl Freeze for Subscription
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnwindSafe for Subscription
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.