pub enum SyncConfig {
Peers,
ExternalStorage(ExternalStorageConfig),
}Expand description
Configures how to fetch state parts during state sync.
JSON schema
{
"description": "Configures how to fetch state parts during state sync.",
"oneOf": [
{
"description": "Syncs state from the peers without reading anything from external storage.",
"type": "string",
"enum": [
"Peers"
]
},
{
"description": "Expects parts to be available in external storage.",
"type": "object",
"required": [
"ExternalStorage"
],
"properties": {
"ExternalStorage": {
"$ref": "#/components/schemas/ExternalStorageConfig"
}
},
"additionalProperties": false
}
]
}Variants§
Peers
Syncs state from the peers without reading anything from external storage.
ExternalStorage(ExternalStorageConfig)
Expects parts to be available in external storage.
Trait Implementations§
Source§impl Clone for SyncConfig
impl Clone for SyncConfig
Source§fn clone(&self) -> SyncConfig
fn clone(&self) -> SyncConfig
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 Debug for SyncConfig
impl Debug for SyncConfig
Source§impl<'de> Deserialize<'de> for SyncConfig
impl<'de> Deserialize<'de> for SyncConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SyncConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SyncConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&SyncConfig> for SyncConfig
impl From<&SyncConfig> for SyncConfig
Source§fn from(value: &SyncConfig) -> SyncConfig
fn from(value: &SyncConfig) -> SyncConfig
Converts to this type from the input type.
Source§impl From<ExternalStorageConfig> for SyncConfig
impl From<ExternalStorageConfig> for SyncConfig
Source§fn from(value: ExternalStorageConfig) -> SyncConfig
fn from(value: ExternalStorageConfig) -> SyncConfig
Converts to this type from the input type.
Source§impl Serialize for SyncConfig
impl Serialize for SyncConfig
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 SyncConfig
impl RefUnwindSafe for SyncConfig
impl Send for SyncConfig
impl Sync for SyncConfig
impl Unpin for SyncConfig
impl UnwindSafe for SyncConfig
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