pub trait InvocationIdGenerator:
Debug
+ Send
+ Sync {
// Required method
fn generate(&self) -> Result<Option<InvocationId>, BoxError>;
}Expand description
A generator for returning new invocation IDs on demand.
Required Methods§
Sourcefn generate(&self) -> Result<Option<InvocationId>, BoxError>
fn generate(&self) -> Result<Option<InvocationId>, BoxError>
Call this function to receive a new InvocationId or an error explaining why one couldn’t
be provided.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl InvocationIdGenerator for DefaultInvocationIdGenerator
impl InvocationIdGenerator for NoInvocationIdGenerator
Available on crate feature
test-util only.impl InvocationIdGenerator for PredefinedInvocationIdGenerator
Available on crate feature
test-util only.