Struct everscale_network::overlay::ShardOptions
source · [−]pub struct ShardOptions {Show 13 fields
pub max_shard_peers: usize,
pub max_shard_neighbours: usize,
pub max_broadcast_log: u32,
pub broadcast_gc_interval_ms: u64,
pub overlay_peers_timeout_ms: u64,
pub max_ordinary_broadcast_len: usize,
pub broadcast_target_count: usize,
pub secondary_broadcast_target_count: usize,
pub secondary_fec_broadcast_target_count: usize,
pub broadcast_wave_len: usize,
pub broadcast_wave_interval_ms: u64,
pub broadcast_timeout_sec: u64,
pub force_compression: bool,
}Expand description
Overlay shard configuration
Fields
max_shard_peers: usizeInstant random peers list length. Used to select neighbours.
Default: 20
max_shard_neighbours: usizeMore persistent list of peers. Used to distribute broadcasts.
Default: 5
max_broadcast_log: u32Max simultaneous broadcasts.
Default: 1000
broadcast_gc_interval_ms: u64Broadcasts GC interval. Will leave at most max_broadcast_log each iteration.
Default: 1000 ms
overlay_peers_timeout_ms: u64Neighbours or random peers update interval.
Default: 60000 ms
max_ordinary_broadcast_len: usizePackets with length bigger than this will be sent using FEC broadcast.
See Shard::broadcast
Default: 768 bytes
broadcast_target_count: usizeMax number of peers to distribute broadcast to.
Default: 3
secondary_broadcast_target_count: usizeMax number of peers to redistribute ordinary broadcast to.
Default: 3
secondary_fec_broadcast_target_count: usizeMax number of peers to redistribute FEC broadcast to.
Default: 5
broadcast_wave_len: usizeNumber of FEC messages to send in group. There will be a short delay between them.
Default: 20
broadcast_wave_interval_ms: u64Interval between FEC broadcast waves.
Default: 10 ms
broadcast_timeout_sec: u64Overlay broadcast timeout. It will be forcefully dropped if not received in this time.
Default: 60 sec
force_compression: boolWhether requests will be compressed.
Default: false
Trait Implementations
sourceimpl Clone for ShardOptions
impl Clone for ShardOptions
sourcefn clone(&self) -> ShardOptions
fn clone(&self) -> ShardOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ShardOptions
impl Debug for ShardOptions
sourceimpl Default for ShardOptions
impl Default for ShardOptions
sourceimpl<'de> Deserialize<'de> for ShardOptions where
ShardOptions: Default,
impl<'de> Deserialize<'de> for ShardOptions where
ShardOptions: Default,
sourcefn 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
sourceimpl Serialize for ShardOptions
impl Serialize for ShardOptions
impl Copy for ShardOptions
Auto Trait Implementations
impl RefUnwindSafe for ShardOptions
impl Send for ShardOptions
impl Sync for ShardOptions
impl Unpin for ShardOptions
impl UnwindSafe for ShardOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more