pub struct GSIConfigBuilder { /* private fields */ }Expand description
Builder struct for GSIConfig
Implementations§
Source§impl 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§
Source§impl Clone for GSIConfigBuilder
impl Clone for GSIConfigBuilder
Source§fn clone(&self) -> GSIConfigBuilder
fn clone(&self) -> GSIConfigBuilder
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 From<&GSIConfigBuilder> for GSIConfig
impl From<&GSIConfigBuilder> for GSIConfig
Source§fn from(builder: &GSIConfigBuilder) -> Self
fn from(builder: &GSIConfigBuilder) -> Self
Converts to this type from the input type.
Source§impl From<GSIConfigBuilder> for GSIConfig
impl From<GSIConfigBuilder> for GSIConfig
Source§fn from(builder: GSIConfigBuilder) -> Self
fn from(builder: GSIConfigBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GSIConfigBuilder
impl RefUnwindSafe for GSIConfigBuilder
impl Send for GSIConfigBuilder
impl Sync for GSIConfigBuilder
impl Unpin for GSIConfigBuilder
impl UnwindSafe for GSIConfigBuilder
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more