Struct screeps_api::sync::Config [] [src]

pub struct Config<'a, C = UseHttpsConnector, T = UseRcTokens> { /* fields omitted */ }

Configuration for construction a SyncApi.

Methods

impl Config<'static, UseHttpsConnector, UseRcTokens>
[src]

[src]

Creates an initial config which will use an HTTPS connector and non-Send tokens.

impl<'a, C, T> Config<'a, C, T>
[src]

[src]

Sets the Hyper connector to connect to to the given connector.

[src]

Sets the Hyper connector to connect to to the given connector.

[src]

Sets the url to connect to to the given url.

[src]

Sets the token storage for the config to the given token storage.

impl<'a, T: TokenStorage> Config<'a, UseHttpsConnector, T>
[src]

[src]

Builds the config into a SyncApi.

impl<'a, C: Connect> Config<'a, C, UseRcTokens>
[src]

[src]

Builds the config into a SyncApi.

impl<'a> Config<'a, UseHttpsConnector, UseRcTokens>
[src]

[src]

Builds the config into a SyncApi.

impl<'a, C: Connect, T: TokenStorage> Config<'a, C, T>
[src]

[src]

Builds the config into a SyncApi.