Struct csgo_gsi2::GSIConfigBuilder
source · [−]pub struct GSIConfigBuilder { /* private fields */ }Expand description
Builder struct for GSIConfig
Implementations
sourceimpl GSIConfigBuilder
impl GSIConfigBuilder
sourcepub fn new<S: Into<String>>(name: S) -> GSIConfigBuilder
pub fn new<S: Into<String>>(name: S) -> GSIConfigBuilder
Initialize the builder, with the given service name
sourcepub fn timeout(&mut self, timeout: Duration) -> &mut Self
pub fn timeout(&mut self, timeout: Duration) -> &mut Self
CS:GO’s client timeout for requests (default is 1.1 seconds)
sourcepub fn buffer(&mut self, buffer: Duration) -> &mut Self
pub fn buffer(&mut self, buffer: Duration) -> &mut Self
minimum wait between sending updates (default is 0.1 seconds)
sourcepub fn throttle(&mut self, throttle: Duration) -> &mut Self
pub fn throttle(&mut self, throttle: Duration) -> &mut Self
minimum wait between response to one update and sending the next (default is 1.0 seconds)
sourcepub fn heartbeat(&mut self, heartbeat: Duration) -> &mut Self
pub fn heartbeat(&mut self, heartbeat: Duration) -> &mut Self
maximum time between updates (default is 60 seconds)
sourcepub fn auth<S1: Into<String>, S2: Into<String>>(
&mut self,
key: S1,
value: S2
) -> &mut Self
pub fn auth<S1: Into<String>, S2: Into<String>>(
&mut self,
key: S1,
value: S2
) -> &mut Self
adds an authorization key/value pair (not currently verified)
sourcepub fn precision_time(&mut self, precision: u8) -> &mut Self
pub fn precision_time(&mut self, precision: u8) -> &mut Self
digits after the decimal point in time values (default is 2)
sourcepub fn precision_position(&mut self, precision: u8) -> &mut Self
pub fn precision_position(&mut self, precision: u8) -> &mut Self
digits after the decimal point in position values (default is 2)
sourcepub fn precision_vector(&mut self, precision: u8) -> &mut Self
pub fn precision_vector(&mut self, precision: u8) -> &mut Self
digits after the decimal point in vector values (default is 2)
sourcepub fn subscribe(&mut self, subscription: Subscription) -> &mut Self
pub fn subscribe(&mut self, subscription: Subscription) -> &mut Self
subscribe to a certain set of update info
sourcepub fn subscribe_multiple<I: IntoIterator<Item = S>, S: Into<Subscription>>(
&mut self,
subscriptions: I
) -> &mut Self
pub fn subscribe_multiple<I: IntoIterator<Item = S>, S: Into<Subscription>>(
&mut self,
subscriptions: I
) -> &mut Self
subscribe to several sets of update info
Trait Implementations
sourceimpl Clone for GSIConfigBuilder
impl Clone for GSIConfigBuilder
sourcefn clone(&self) -> GSIConfigBuilder
fn clone(&self) -> GSIConfigBuilder
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 From<&GSIConfigBuilder> for GSIConfig
impl From<&GSIConfigBuilder> for GSIConfig
sourcefn from(builder: &GSIConfigBuilder) -> Self
fn from(builder: &GSIConfigBuilder) -> Self
Converts to this type from the input type.
sourceimpl From<GSIConfigBuilder> for GSIConfig
impl From<GSIConfigBuilder> for GSIConfig
sourcefn from(builder: GSIConfigBuilder) -> Self
fn from(builder: GSIConfigBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for GSIConfigBuilder
impl Send for GSIConfigBuilder
impl Sync for GSIConfigBuilder
impl Unpin for GSIConfigBuilder
impl UnwindSafe for GSIConfigBuilder
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<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