pub struct ThroughputPolicy {
pub per_peer_messages_per_minute: u32,
pub per_peer_bytes_per_minute: u64,
pub global_messages_per_minute: u32,
pub global_bytes_per_minute: u64,
pub max_forward_actions: usize,
}Expand description
Throughput and anti-flood policy.
Fields§
§per_peer_messages_per_minute: u32Max inbound messages per peer per minute.
per_peer_bytes_per_minute: u64Max inbound bytes per peer per minute.
global_messages_per_minute: u32Max total inbound messages per minute.
global_bytes_per_minute: u64Max total inbound bytes per minute.
max_forward_actions: usizeMax forwarding fanout produced by one accepted message.
Trait Implementations§
Source§impl Clone for ThroughputPolicy
impl Clone for ThroughputPolicy
Source§fn clone(&self) -> ThroughputPolicy
fn clone(&self) -> ThroughputPolicy
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 ThroughputPolicy
impl Debug for ThroughputPolicy
Source§impl<'de> Deserialize<'de> for ThroughputPolicy
impl<'de> Deserialize<'de> for ThroughputPolicy
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
Auto Trait Implementations§
impl Freeze for ThroughputPolicy
impl RefUnwindSafe for ThroughputPolicy
impl Send for ThroughputPolicy
impl Sync for ThroughputPolicy
impl Unpin for ThroughputPolicy
impl UnsafeUnpin for ThroughputPolicy
impl UnwindSafe for ThroughputPolicy
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