pub struct ChunkDistributionNetworkConfig {
pub enabled: bool,
pub uris: ChunkDistributionUris,
}
Expand description
Config for the Chunk Distribution Network feature. This allows nodes to push and pull chunks from a central stream. The two benefits of this approach are: (1) less request/response traffic on the peer-to-peer network and (2) lower latency for RPC nodes indexing the chain.
JSON schema
{
"description": "Config for the Chunk Distribution Network feature.\nThis allows nodes to push and pull chunks from a central stream.\nThe two benefits of this approach are: (1) less request/response traffic\non the peer-to-peer network and (2) lower latency for RPC nodes indexing the chain.",
"type": "object",
"required": [
"enabled",
"uris"
],
"properties": {
"enabled": {
"type": "boolean"
},
"uris": {
"$ref": "#/components/schemas/ChunkDistributionUris"
}
}
}
Fields§
§enabled: bool
§uris: ChunkDistributionUris
Trait Implementations§
Source§impl Clone for ChunkDistributionNetworkConfig
impl Clone for ChunkDistributionNetworkConfig
Source§fn clone(&self) -> ChunkDistributionNetworkConfig
fn clone(&self) -> ChunkDistributionNetworkConfig
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<'de> Deserialize<'de> for ChunkDistributionNetworkConfig
impl<'de> Deserialize<'de> for ChunkDistributionNetworkConfig
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 From<&ChunkDistributionNetworkConfig> for ChunkDistributionNetworkConfig
impl From<&ChunkDistributionNetworkConfig> for ChunkDistributionNetworkConfig
Source§fn from(value: &ChunkDistributionNetworkConfig) -> Self
fn from(value: &ChunkDistributionNetworkConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChunkDistributionNetworkConfig
impl RefUnwindSafe for ChunkDistributionNetworkConfig
impl Send for ChunkDistributionNetworkConfig
impl Sync for ChunkDistributionNetworkConfig
impl Unpin for ChunkDistributionNetworkConfig
impl UnwindSafe for ChunkDistributionNetworkConfig
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