pub enum BnRateLimitType {
RequestWeight,
Orders,
RawRequests,
Connections,
}Variants§
RequestWeight
Request weights
Orders
Order counts
RawRequests
Request counts
Connections
WebSocket connections
Trait Implementations§
Source§impl Clone for BnRateLimitType
impl Clone for BnRateLimitType
Source§fn clone(&self) -> BnRateLimitType
fn clone(&self) -> BnRateLimitType
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 Debug for BnRateLimitType
impl Debug for BnRateLimitType
Source§impl<'de> Deserialize<'de> for BnRateLimitType
impl<'de> Deserialize<'de> for BnRateLimitType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for BnRateLimitType
impl Hash for BnRateLimitType
Source§impl PartialEq for BnRateLimitType
impl PartialEq for BnRateLimitType
fn get_client(&self) -> &Client
fn get_signer(&self) -> &dyn SharedSignerTrait
fn get_ratelimiter( &self, ) -> Arc<dyn SharedRatelimiterTrait<BnRateLimitType> + Sync + Send>
fn call_with_no_payload<'life0, 'life1, 'async_trait, ResponseType, Err>(
&'life0 self,
limits: &'life1 [(RateLimitType, NonZero<u32>)],
signed: bool,
method: Method,
url: Url,
) -> Pin<Box<dyn Future<Output = Result<ResponseType, SharedRestError<Err>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
ResponseType: 'async_trait + SharedRestResponseTrait,
Err: 'async_trait + SharedRestClientErrorTrait,
Self: Sync + 'async_trait,
fn call_with_no_response<'life0, 'life1, 'life2, 'async_trait, PayloadType, Err>(
&'life0 self,
limits: &'life1 [(RateLimitType, NonZero<u32>)],
signed: bool,
method: Method,
url: Url,
payload: Option<&'life2 PayloadType>,
) -> Pin<Box<dyn Future<Output = Result<(), SharedRestError<Err>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
PayloadType: 'async_trait + Sync + Send + SharedRestPayloadTrait,
Err: 'async_trait + SharedRestClientErrorTrait,
Self: Sync + 'async_trait,
fn call_with_no_payload_and_response<'life0, 'life1, 'async_trait, Err>(
&'life0 self,
limits: &'life1 [(RateLimitType, NonZero<u32>)],
signed: bool,
method: Method,
url: Url,
) -> Pin<Box<dyn Future<Output = Result<(), SharedRestError<Err>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Err: 'async_trait + SharedRestClientErrorTrait,
Self: Sync + 'async_trait,
fn call<'life0, 'life1, 'life2, 'async_trait, PayloadType, ResponseType, Err>(
&'life0 self,
limits: &'life1 [(RateLimitType, NonZero<u32>)],
signed: bool,
method: Method,
url: Url,
payload: Option<&'life2 PayloadType>,
) -> Pin<Box<dyn Future<Output = Result<ResponseType, SharedRestError<Err>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
PayloadType: 'async_trait + Sync + Send + SharedRestPayloadTrait,
ResponseType: 'async_trait + SharedRestResponseTrait,
Err: 'async_trait + SharedRestClientErrorTrait,
Self: Sync + 'async_trait,
impl Copy for BnRateLimitType
impl Eq for BnRateLimitType
impl StructuralPartialEq for BnRateLimitType
Auto Trait Implementations§
impl Freeze for BnRateLimitType
impl RefUnwindSafe for BnRateLimitType
impl Send for BnRateLimitType
impl Sync for BnRateLimitType
impl Unpin for BnRateLimitType
impl UnwindSafe for BnRateLimitType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.