Enum csgo_gsi2::Subscription
source · [−]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
sourceimpl 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
sourceimpl Clone for Subscription
impl Clone for Subscription
sourcefn clone(&self) -> Subscription
fn clone(&self) -> Subscription
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Subscription
impl Debug for Subscription
sourceimpl From<&Subscription> for Subscription
impl From<&Subscription> for Subscription
sourcefn from(x: &Subscription) -> Self
fn from(x: &Subscription) -> Self
Converts to this type from the input type.
sourceimpl Hash for Subscription
impl Hash for Subscription
sourceimpl PartialEq<Subscription> for Subscription
impl PartialEq<Subscription> for Subscription
sourcefn eq(&self, other: &Subscription) -> bool
fn eq(&self, other: &Subscription) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl Copy for Subscription
impl Eq for Subscription
impl StructuralEq for Subscription
impl StructuralPartialEq for Subscription
Auto Trait Implementations
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnwindSafe for Subscription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more