pub trait CandidateSink {
// Required methods
fn artifact(
&mut self,
kind: Artifact,
page: u16,
bytes: &[u8],
) -> Result<(), ()>;
fn ciphertext(
&mut self,
scope: ObjectScope,
leaf: u64,
bytes: &[u8],
) -> Result<(), ()>;
fn outboard(
&mut self,
spec: &TreeSpec,
node: OutboardNode,
) -> Result<(), ()>;
}Expand description
Bounded synchronous candidate staging only. Implementations must not reenter managed control or await. Actual application guards and durable acceptance must be supplied by the next policy/storage composition; success is not either.
Required Methods§
fn artifact( &mut self, kind: Artifact, page: u16, bytes: &[u8], ) -> Result<(), ()>
fn ciphertext( &mut self, scope: ObjectScope, leaf: u64, bytes: &[u8], ) -> Result<(), ()>
fn outboard(&mut self, spec: &TreeSpec, node: OutboardNode) -> Result<(), ()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".