pub trait Worker:
WorkerTransfers
+ ObjectBlockOps
+ Send
+ Sync {
// Required methods
fn g1_handle(&self) -> Option<LayoutHandle>;
fn g2_handle(&self) -> Option<LayoutHandle>;
fn g3_handle(&self) -> Option<LayoutHandle>;
fn export_metadata(&self) -> Result<SerializedLayoutResponse>;
fn import_metadata(
&self,
metadata: SerializedLayout,
) -> Result<ImportMetadataResponse>;
}Required Methods§
Sourcefn g1_handle(&self) -> Option<LayoutHandle>
fn g1_handle(&self) -> Option<LayoutHandle>
Get the G1 layout handle for this worker (if configured).
Returns None if no G1 layout has been registered with this worker.
Sourcefn g2_handle(&self) -> Option<LayoutHandle>
fn g2_handle(&self) -> Option<LayoutHandle>
Get the G2 layout handle for this worker (if configured).
Returns None if no G2 layout has been registered with this worker.
Sourcefn g3_handle(&self) -> Option<LayoutHandle>
fn g3_handle(&self) -> Option<LayoutHandle>
Get the G3 layout handle for this worker (if configured).
Returns None if no G3 layout has been registered with this worker.
Sourcefn export_metadata(&self) -> Result<SerializedLayoutResponse>
fn export_metadata(&self) -> Result<SerializedLayoutResponse>
Export the local metadata for this worker.
§Returns
A kvbm_physical::manager::SerializedLayout containing the local metadata
Sourcefn import_metadata(
&self,
metadata: SerializedLayout,
) -> Result<ImportMetadataResponse>
fn import_metadata( &self, metadata: SerializedLayout, ) -> Result<ImportMetadataResponse>
Import the remote metadata for this worker.
§Arguments
metadata- Akvbm_physical::manager::SerializedLayoutcontaining the remote metadata
§Returns
A vector of kvbm_physical::manager::LayoutHandle for the imported remote layouts
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".