pub struct Config {
pub rest_api_host: String,
pub ws_host: String,
pub futures_rest_api_host: String,
pub futures_ws_host: String,
pub recv_window: u64,
pub ip_rate_limit_manager: Option<Arc<IpRateLimitManager>>,
pub unfilled_order_rate_limit_manager: Option<Arc<UnfilledOrderRateLimitManager>>,
}Fields§
§rest_api_host: String§ws_host: String§futures_rest_api_host: String§futures_ws_host: String§recv_window: u64§ip_rate_limit_manager: Option<Arc<IpRateLimitManager>>§unfilled_order_rate_limit_manager: Option<Arc<UnfilledOrderRateLimitManager>>Implementations§
Source§impl Config
impl Config
pub fn testnet() -> Self
pub fn set_rest_api_endpoint<T: Into<String>>(self, rest_api_host: T) -> Self
pub fn set_ws_endpoint<T: Into<String>>(self, ws_host: T) -> Self
pub fn set_futures_rest_api_endpoint<T: Into<String>>( self, futures_rest_api_host: T, ) -> Self
pub fn set_futures_ws_endpoint<T: Into<String>>( self, futures_ws_host: T, ) -> Self
pub fn set_recv_window(self, recv_window: u64) -> Self
pub fn set_ip_rate_limit_manager( self, rate_limit_manager: Arc<IpRateLimitManager>, ) -> Self
pub fn set_unfilled_order_rate_limit_manager( self, rate_limit_manager: Arc<UnfilledOrderRateLimitManager>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
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