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.\n This allows nodes to push and pull chunks from a central stream.\n The two benefits of this approach are: (1) less request/response traffic\n on 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: ChunkDistributionUrisTrait 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§const fn clone_from(&mut self, source: &Self)
const 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<ChunkDistributionNetworkConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChunkDistributionNetworkConfig, <__D as Deserializer<'de>>::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,
) -> ChunkDistributionNetworkConfig
fn from( value: &ChunkDistributionNetworkConfig, ) -> ChunkDistributionNetworkConfig
Converts to this type from the input type.
Source§impl Serialize for ChunkDistributionNetworkConfig
impl Serialize for ChunkDistributionNetworkConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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