pub trait Metadata:
Display
+ Send
+ Sync {
// Required methods
fn encode_to_writer(
&self,
writer: SnapshotPayloadWriter,
) -> impl Future<Output = BackupResult<()>> + Send;
fn decode_from_reader(
reader: SnapshotPayloadReader,
) -> impl Future<Output = BackupResult<Self>> + Send
where Self: Sized;
fn hummock_version_ref(&self) -> &HummockVersion;
fn hummock_version(self) -> HummockVersion;
fn storage_url(&self) -> BackupResult<String>;
fn storage_directory(&self) -> BackupResult<String>;
fn table_change_log_object_ids(&self) -> HashSet<HummockRawObjectId>;
}Required Methods§
fn encode_to_writer( &self, writer: SnapshotPayloadWriter, ) -> impl Future<Output = BackupResult<()>> + Send
fn decode_from_reader(
reader: SnapshotPayloadReader,
) -> impl Future<Output = BackupResult<Self>> + Sendwhere
Self: Sized,
fn hummock_version_ref(&self) -> &HummockVersion
fn hummock_version(self) -> HummockVersion
fn storage_url(&self) -> BackupResult<String>
fn storage_directory(&self) -> BackupResult<String>
fn table_change_log_object_ids(&self) -> HashSet<HummockRawObjectId>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".