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§fn clone_from(&mut self, source: &Self)
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<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<&SyncConfig> for SyncConfig
impl From<&SyncConfig> for SyncConfig
Source§fn from(value: &SyncConfig) -> Self
fn from(value: &SyncConfig) -> Self
Converts to this type from the input type.
Source§impl From<ExternalStorageConfig> for SyncConfig
impl From<ExternalStorageConfig> for SyncConfig
Source§fn from(value: ExternalStorageConfig) -> Self
fn from(value: ExternalStorageConfig) -> Self
Converts to this type from the input type.
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