Skip to main content

ActivityGuard

Trait ActivityGuard 

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

Source

fn finish(self, encoded_bytes: usize) -> Result<Self::Retained, Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ActivityGuard for ()

Implementors§