pub struct StaticSpec { /* private fields */ }Expand description
Concrete static spec used when callers just need to plug a network_id
into the canonical defaults.
Implementations§
Trait Implementations§
Source§impl Clone for StaticSpec
impl Clone for StaticSpec
Source§fn clone(&self) -> StaticSpec
fn clone(&self) -> StaticSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StaticSpec
Source§impl Debug for StaticSpec
impl Debug for StaticSpec
impl Eq for StaticSpec
Source§impl PartialEq for StaticSpec
impl PartialEq for StaticSpec
Source§fn eq(&self, other: &StaticSpec) -> bool
fn eq(&self, other: &StaticSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StaticSpec
Source§impl SwarmSpec for StaticSpec
impl SwarmSpec for StaticSpec
Source§fn network_id(&self) -> NetworkId
fn network_id(&self) -> NetworkId
Network identifier used in
compute_overlay
and the BzzAddress sign-data.Source§fn max_proximity_order(&self) -> ProximityOrder
fn max_proximity_order(&self) -> ProximityOrder
Maximum proximity order (= number of bins minus one).
Source§fn saturation_peers(&self) -> u8
fn saturation_peers(&self) -> u8
Minimum desired peers per bin before the bin is considered saturated.
Bee default: 8 (
defaultSaturationPeers).Source§fn over_saturation_peers(&self) -> u8
fn over_saturation_peers(&self) -> u8
Soft cap: above this, non-bootnode peers reject further inbound dials.
Bee default: 18 (
defaultOverSaturationPeers).Source§fn bootnode_over_saturation_peers(&self) -> u8
fn bootnode_over_saturation_peers(&self) -> u8
Soft cap for bootnode mode (higher than regular).
Bee default: 20 (
defaultBootNodeOverSaturationPeers).Source§fn neighborhood_low_watermark(&self) -> u8
fn neighborhood_low_watermark(&self) -> u8
Minimum peers required in the deepest bins to maintain neighborhood
depth (bee default: 2 -
nnLowWatermark).Source§fn clock_skew_tolerance(&self) -> Duration
fn clock_skew_tolerance(&self) -> Duration
Maximum clock skew permitted between local and remote timestamps
during handshake / hive verification. Bee’s
bzz/timestamp.go
hard-codes 5s but operational deployments commonly relax to minutes
or hours; this default is 6h to match what was previously embedded
in vertex.Auto Trait Implementations§
impl Freeze for StaticSpec
impl RefUnwindSafe for StaticSpec
impl Send for StaticSpec
impl Sync for StaticSpec
impl Unpin for StaticSpec
impl UnsafeUnpin for StaticSpec
impl UnwindSafe for StaticSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more