Skip to main content

Worker

Trait Worker 

Source
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§

Source

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.

Source

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.

Source

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.

Source

fn export_metadata(&self) -> Result<SerializedLayoutResponse>

Export the local metadata for this worker.

§Returns

A kvbm_physical::manager::SerializedLayout containing the local metadata

Source

fn import_metadata( &self, metadata: SerializedLayout, ) -> Result<ImportMetadataResponse>

Import the remote metadata for this worker.

§Arguments
§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".

Implementors§