pub trait ActivityGuard: Send {
type Retained: Send;
// Required method
fn finish(self, encoded_bytes: usize) -> Result<Self::Retained, Error>;
}Expand description
Hosts can charge database work and output memory separately. Finishing the
work releases execution slots while the returned lease covers delivery.
Devices without a shared work scheduler can keep returning ().
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".