pub trait StaticWeightImportSession<B, E> {
// Required methods
fn import_component(
&mut self,
payload: &WeightComponentPayload<'_>,
destination: &B,
destination_offset_bytes: u64,
) -> Result<(), E>;
fn seal(self: Box<Self>) -> Result<(), E>;
}Expand description
Cold-path transaction for backends that can bind immutable weight components directly instead of allocating and uploading one contiguous physical arena.
The session must not publish a partially imported arena. Self::seal
consumes the complete transaction and is the only point at which imported
regions may become visible to device execution.
Required Methods§
fn import_component( &mut self, payload: &WeightComponentPayload<'_>, destination: &B, destination_offset_bytes: u64, ) -> Result<(), E>
fn seal(self: Box<Self>) -> Result<(), E>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".