Skip to main content

DocumentEffects

Trait DocumentEffects 

pub trait DocumentEffects {
    // Required method
    fn start_document_effects(
        &mut self,
        operation: &ResourceOperation<'_>,
        applied: &AppliedDocument<'_>,
    ) -> Result<Option<ResourceOperationStart>, String>;
}
Expand description

An owner that explicitly drains caller-authorized document consequences. The owner must retain the operation’s actual custody with delayed work and report its terminal result through the ordinary resource operation poll. Only actions declared to complete asynchronously enter this callback. Immediate actions, submissions, replay and remote merge do not enter it.

Required Methods§

fn start_document_effects( &mut self, operation: &ResourceOperation<'_>, applied: &AppliedDocument<'_>, ) -> Result<Option<ResourceOperationStart>, String>

§Errors

Returns refusal of the current caller or the exact queued consequence.

Implementors§